-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
72 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# This configuration file was automatically generated by Gitpod. | ||
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml) | ||
# and commit this file to your remote git repository to share the goodness with others. | ||
|
||
# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart | ||
|
||
tasks: | ||
- name: Setup Backend | ||
init: | | ||
pip install -r requirements.txt | ||
# You might want to add a command here to generate a SECRET_KEY in .env file if necessary | ||
python manage.py collectstatic --noinput | ||
python manage.py makemigrations --noinput | ||
python manage.py migrate --noinput | ||
python manage.py test | ||
command: | | ||
echo "To run the backend in DEBUG mode:" | ||
DEBUG=True python manage.py runserver | ||
echo "To run the backend in production mode:" | ||
echo "DEBUG=False uvicorn backend_lms.asgi:application --host 0.0.0.0 --port 8000 --workers 2" | ||
- name: Setup Frontend | ||
init: | | ||
cd ui/ | ||
npm install -g pnpm | ||
pnpm i | ||
cp .env.example .env | ||
pnpm test | ||
pnpm build | ||
command: | | ||
echo "Frontend build complete. To start the dev server, run:" | ||
echo "cd ui && pnpm dev" | ||
ports: | ||
- port: 8000 | ||
onOpen: ignore | ||
- port: 5173 | ||
onOpen: open-preview |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
VITE_APP_TITLE=TalentCampus | ||
# default locale | ||
VITE_LOCALE="en" | ||
VITE_HOSTNAME="http://127.0.0.1:8000" | ||
VITE_USE_CSRF_TOKEN=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,6 @@ dist-ssr | |
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
# Environments | ||
.env |