a composed image developed using fastapi and next.js, containerization using docker, database adapter initialized with postgres and sqlite databases and CI/CD intigration using Github-Actions also Jenkins as an alternative.
run docker container
docker compose up
build newer image command:
docker build -t online_learning_image .
docker run command:
docker run -d --name demo_python -p 8000:8000 online_learning_image
remove older image command:
docker stop demo_python && docker rm demo_python
pytest test/test_main.py
start postgreg database server in the cmd
pg_ctl start -D "C:\Program Files\PostgreSQL\16\data"
install dependencies
pip install --no-cache-dir --upgrade -r requirements.txt
run uvicorn
uvicorn app.main:app --reload