A brief description of your project and its functionality.
- FastAPI
- PostgreSQL
- Jax (for machine learning)
- Docker
.
├── app # Main directory for source code
│ ├── models # The directory for machine learning models
│ │ ├── model.py # Model code file
│ │ └── pretrained # Directory for storing pre-trained models
│ ├── api # Directory for API endpoints
│ │ └── routes.py # File with API routes
│ ├── db # The directory for working with the database
│ │ └── database.py # File with code for working with database
│ └── main.py # The main application file where FastAPI is initialized, etc.
├── tests # Test directory
│ ├── test_model.py # Tests for models
│ └── test_api.py # Tests for APIs
├── docker # Optional directory where Docker-specific files are stored, if they are needed
├── Dockerfile # File for creating a Docker image
├── docker-compose.yml # File to manage the Docker multi-container application
├── requirements.txt # A file with project dependencies
├── .gitignore # File for specifying Git ignored files and directories
└── README.md # File with project description and instructions
Make sure you have Docker and Docker Compose installed. Download link: Docker
git clone <URL of your repository>
cd <your project name>docker-compose up --buildThe application will be available at: http://localhost:8000
The database connection configuration is in the docker-compose.yml file.
Add the required dependencies in the requirements.txt file and rebuild the Docker container.
docker-compose downDocumentation for your API can be found at: http://localhost:8000/docs