TBD
docker run --name mentor-postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_USER=postgres -p 5432:5432 -d postgres
Manually,
cd backend && pip install -r requirements.txt && &python src/main.py
Manually,
cd frontend && npm build && npm start
-
Make a file called .ENV in your project root folder
-
Build images
docker-compose build
- Run containers
docker-compose --env-file .ENV up -d
- Make the change in
orm_models/db_models.py
(e.g. Add table, change column name etc..) - Make the change in
shemas/{table_name}.py
- Generate Alembic file by running this command
alembic -c src/alembic.ini revision --autogenerate -m "{Your change description}"
- Revise the generated file under
src/alembic/versions/{generated_file}.py
- Push the version file together with other changes to GitHub