Clone the project
using GIT
git clone https://github.com/MRXAZK/FMMC.git
or
Fork the project on GitHub Click on the "Fork" button in the top right corner of the page. Select the account where you want to fork the repository. Clone the forked repository
KEY | VALUE |
---|---|
DB_ENGINE |
Your Database Engine |
DB_HOST |
Your Database Host |
DB_PORT |
Your Database Port |
DB_NAME |
Your Database Name |
DB_USER |
Your Database Username |
DB_PASS |
Your Database Password |
KEY | VALUE |
---|---|
MONGODB_URL |
Your MongoDB Connection String |
MONGO_INITDB_ROOT_USERNAME |
Your MongoDB Username |
MONGO_INITDB_ROOT_PASSWORD |
Your MongoDB Password |
Note : You can take .env.example as a template and rename to .env and fill all requirement
You can create a Virtual Environment for this project
python3 -m venv venv
And Activate the Virtual Environment
source venv/bin/activate
pip install -r requirements.txt
uvicorn main:app --reload
- Make sure you have Docker and Docker Compose installed on your machine.
- Build and run the Docker containers
docker-compose up --build
The server will be running at http://0.0.0.0:8000/
Note : You can also use the command docker-compose up -d to run the containers in detached mode.
- You can stop the containers by running
docker-compose down
Or If you want to remove the volumes as well, you can add --volumes flag to docker-compose down command like this:
docker-compose down --volumes