Create a virtual environment
cd backend
python3 -m venv ve
source ve/bin/activate
pip install -U pip
pip install -r requirements.txt
Run django app
python manage.py runserver
making and running migrations
python manage.py makemigrations
python manage.py migrate
Install dependencies.
cd frontend
npm i
Run dev server
npm start
Make sure Docker is running
While in the root directory, build docker images and run them with docker-compose. This might take up to few minutes. make sure to rebuild images after installing new packages.
docker-compose up --build
the app is now running!
127.0.0.1:8000
127.0.0.1:3000
.If images have been built, just run:
docker-compose up -d
Bringing down containers with optional -v flag removes all attached volumes and invalidates cache.
docker-compose down
To run commands in active container:
docker exec -it CONTAINER_ID bash