First you need to have docker install locally
You can check out guide to install docker
To run application for development:
# Start development server, it will restart the server when there are new changes
docker-compose up --build
Connect to development databse and work aith auth route:
First create .env
at root level and inside .env
:
RDS_PORT=<port>
DATABASE=<database name>
PASSWORD=<password>
USER=<username>
HOST=<host address>
SECRET_KEY=<>
JWT_SECRET=<>
JWT_DATE=<>
To run application for production:
# To build an image
docker build -t sliver-ape/back-end .
# Start server
docker run -it -p 5000:5000 -v ${pwd}:/app sliver-ape/back-end