- Docker
- If Windows, with WSL2 integration
- MySQL 8
- React 18
- Next.js 13.2.1
- TypeScript
- TailwindCSS
- ESLint
- Python 3.8
- Django 4.1
- pipenv
- Django REST framework 3.14
First, copy the env file:
cp api/.env.example api/.env
Make sure to add secret key to api/.env
file. You can quickly generate it from https://djecrety.ir.
Then build docker:
docker-compose build --no-cache
After successfully building, run:
docker-compose up
To stop:
docker-compose stop
Always run pipenv commands, after running the following command:
docker exec -it lms-django bash
Then run shell:
pipenv shell
After the previous commands you can run commands like:
pipenv run migrate
To exit from pipenv shell
run the following command or press Ctrl+D
:
exit
To exit from the container repeat the command above.
Always run npm commands after running the following command:
docker exec -it lms-nextjs sh
Then you will be a ble to run commands like:
npm install
npm run lint
To exit, run the following command or press Ctrl+D
:
exit
Once you finish the setup, you can access the following:
- localhost:3000
- localhost:8000
Use your preferred MySQL client and use the following connection:
MySQL Host Address: localhost
Username: lms
Password: password
Port: 3309
Database: lms