Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8d8a3bd

Browse files
authored
Merge pull requestalexmojaki#161 from alexmojaki/no-django
No django
2 parents0c29af6 +3545bad commit8d8a3bd

File tree

186 files changed

+1290
-3153
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

186 files changed

+1290
-3153
lines changed

‎.dockerignore‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎.firebaserc‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "futurecoder-io"
4+
}
5+
}

‎.github/workflows/pytest.yml‎

Lines changed: 0 additions & 41 deletions
This file was deleted.

‎.github/workflows/workflow.yml‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name:Build, test, deploy
2+
on:[push, pull_request]
3+
jobs:
4+
test:
5+
runs-on:ubuntu-latest
6+
steps:
7+
-uses:actions/checkout@v2
8+
-name:Set up Python
9+
uses:actions/setup-python@v2
10+
with:
11+
python-version:3.8
12+
-name:Set up Node
13+
uses:actions/setup-node@v2
14+
with:
15+
node-version:'14'
16+
-name:Install chromedriver
17+
uses:nanasess/setup-chromedriver@master
18+
-name:Build
19+
id:build
20+
env:
21+
REACT_APP_FEEDBACK_GITHUB_TOKEN:${{ secrets.REACT_APP_FEEDBACK_GITHUB_TOKEN }}
22+
REACT_APP_SENTRY_DSN:https://37b1f01452b54bf4a0fe88656070998f@o871617.ingest.sentry.io/5824691
23+
run:./full_build.sh
24+
-name:Test
25+
run:./ci_test.sh
26+
-name:Upload test artifacts
27+
uses:actions/upload-artifact@v2
28+
if:steps.build.outcome == 'success'
29+
with:
30+
path:'**/test_frontend_assets/'
31+
-name:Deploy
32+
uses:FirebaseExtended/action-hosting-deploy@v0
33+
if:steps.build.outcome == 'success'
34+
with:
35+
repoToken:'${{ secrets.GITHUB_TOKEN }}'
36+
firebaseServiceAccount:'${{ secrets.FIREBASE_SERVICE_ACCOUNT_FUTURECODER_IO }}'
37+
projectId:futurecoder-io
38+
channelId:${{ job.status == 'success' && github.event_name == 'push' && github.ref == 'refs/heads/master' && 'live' || github.ref }}

‎.gitignore‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,17 @@ dmypy.json
131131
# Pyre type checker
132132
.pyre/
133133

134-
backend/static/
135-
backend/main/tests/error_screenshot.png
136-
backend/main/static/package.zip
137-
backend/main/tests/test_frontend_assets
134+
tests/test_frontend_assets
138135

139136
# temporary local files
140137
tmp/
141138
videos/media/
142139

143140
# vscode's settings
144141
.vscode/
142+
143+
homepage/static/css/*.css
144+
homepage/static/css/**/*.css
145+
*.css.map
146+
147+
.firebase

‎Dockerfile‎

Lines changed: 0 additions & 54 deletions
This file was deleted.

‎README.md‎

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -134,33 +134,9 @@ Several debuggers are provided, including [snoop](https://github.com/alexmojaki/
134134

135135
##Running locally
136136

137-
1. Fork the repository, and clone your fork.
138-
2. If you want to run the system using Docker, which may be easier and will more closely resemble the production environment:
139-
1. Ensure you have docker and docker-compose installed.
140-
2. Create an empty file called`.env` in the repo root.
141-
3. Run`docker-compose up`.
142-
4. Skip the following two steps, everything should be running now.
143-
3. In the`backend` folder:
144-
1. Ensure the`python` command points to Python 3.9.
145-
146-
2. If you are on Linux/OSX, run`./setup.sh`.
147-
148-
If you are on Windows: (in a Powershell window with "Run as Administrator")
149-
150-
1. Run`Set-ExecutionPolicy -ExecutionPolicy Bypass` to enable running scripts in Powershell.
151-
2. Run`.\setup.ps1`.
152-
153-
This will:
154-
155-
- Install `poetry` if needed.
156-
- Create a virtualenv and install Python dependencies.
157-
- Create a sqlite database, run migrations, and create a user.
158-
159-
3. Activate the virtualenv with `poetry shell`.
160-
161-
4. Run the backend development server with `python manage.py runserver`.
162-
163-
4. In the`frontend` folder:
137+
1. Install Python 3.9 and[poetry](https://python-poetry.org/docs/#installation).
138+
2. Run`PYTHONPATH=. poetry run python core/generate_static_files.py`
139+
3. In the`frontend` folder:
164140
1. Ensure you have version 14.15.4 (lts/fermium) of`node` and version 7.5.2 of`npm`.
165141

166142
If you are on Windows: (in a Powershell window with "Run as Administrator")
@@ -170,8 +146,7 @@ Several debuggers are provided, including [snoop](https://github.com/alexmojaki/
170146
2. Run`npm ci` to download dependencies.
171147

172148
3. Run`npm start` to start the frontend development server.
173-
5. Go tohttp://localhost:3000/accounts/login/ and login with the email "admin@example.com" and the password "admin".
174-
6. You should be redirected tohttp://localhost:3000/toc/ and see the Table of Contents.
149+
4. Go tohttp://localhost:3000/course/
175150

176151
To learn more about the system, see the[contributing guide](how_to_contribute.md).
177152

‎app.json‎

Lines changed: 0 additions & 16 deletions
This file was deleted.

‎backend/book/middleware.py‎

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp