WIP btw ๐ง๐ง๐ง
Alunno is a web-based course management application for WebAppSec course which uses Django and React.
๐ Fast
๐จ Beautiful interface
๐ก๏ธ Super Duper Secure
๐ Multilingual
- Python:
^3.10.0
- Nodejs:
16.15.0
- Use
.env.local
to store your secrets (*.local
files is ignored). Ex: Django secret key, ... - Use
.env
to store other variables. .env*
files should place inbackend
orfrontend
folder.
After setup, you can format code with the following command:
-
Backend:
black { your file or folder } # Python only
-
Ex: If your current directory is
backend
, you can run:black .
-
-
Frontend
pnpm format
After setup, if you want to generate new Django secret key, you can run:
manage.py djecrety
- Get the source code
git clone https://github.com/ducluongtran9121/Web-Application-Project.git
cd Web-Application-Project
- Set up
-
Set up backend
-
Create environment
cd backend python -m venv .venv # Or python3
-
Active environment
.venv\Scripts\Activate.ps1 # Powershell .venv\Scripts\activate.bat # Command Prompt .venv\Scripts\activate # Unix
-
Install dependencies
pip install -r .\requirements.txt
-
Add your secret key
echo "DJANGO_SECRET_KEY={ Your secret key }" > .env.local
-
Migrate
python manage.py makemigrations python manage.py migrate
-
-
Set up frontend
-
Install dependencies
cd frontend pnpm i
-
-
Backend
python manage.py runserver
-
Frontend
-
To run dev server
pnpm dev
-
To build the app
pnpm build
-
-
Backend
-
Frontend
-
Love โค๏ธ
Ngo Duc Hoang Son ๐ป ๐ ๐จ ๐ง |
thihuynhdotexe ๐ป ๐ง ๐ |
janlele91 ๐ป ๐ง ๐ |