- 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/.envMake 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-cacheAfter successfully building, run:
docker-compose upTo stop:
docker-compose stopAlways run pipenv commands, after running the following command:
docker exec -it lms-django bashThen run shell:
pipenv shellAfter the previous commands you can run commands like:
pipenv run migrateTo exit from pipenv shell run the following command or press Ctrl+D:
exitTo exit from the container repeat the command above.
Always run npm commands after running the following command:
docker exec -it lms-nextjs shThen you will be a ble to run commands like:
npm installnpm run lintTo exit, run the following command or press Ctrl+D:
exitOnce 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