Ensure you have the following installed:
- Docker
- Docker Compose
git clone https://github.com/someoneudonknow/fastapi_demo.git
cd fastapi_demoCreate a .env file in the root directory of the project and add the following variables:
ADMIN_EMAIL=admindeptrai@gmail.com
ADMIN_NAME=Admin
ADMIN_PASSWORD=123456
POSTGRES_USER=user1
POSTGRES_PASSWORD=supersecretpassword
POSTGRES_DB=fastapi_demo
POSTGRES_PORT=5432
POSTGRES_HOST=postgres
REDIS_HOST=redis
REDIS_PORT=6379docker compose up -dThe fastapi application will be available at http://localhost:8000.
Open your web browser and navigate to http://localhost:8000/docs to access the Swagger UI.