Welcome to the documentation for Gordian – a basic API designed to handle user registration and login seamlessly.
To start using Gordian and access its documentation, please visit the Gordian website.
Gordian API is built using the following technologies:
- Python
- FastAPI
- MongoDB
- Render
Follow these steps to run Gordian API on your local machine:
git clone https://github.com/mAmineChniti/Gordian-API.git
cd Gordian-API
Set up these environment variables in your local environment:
Variable | Description |
---|---|
USER | MongoDB Username |
PASS | MongoDB Password |
BASE | MongoDB Database Name |
COLLECTION | MongoDB Collection Name |
HOST | MongoDB Host |
You can adjust the configuration by modifying the code in config/database.py
to match your environment.
Run the following command in your terminal to set up the project environment and install necessary dependencies:
make
The provided Makefile
automates the setup process, creating a virtual environment, activating it, upgrading pip
, and installing project dependencies from requirements.txt
.
To deploy the API locally, use the following command:
uvicorn Gordian:app --host 0.0.0.0 --port $PORT --reload
Once the API is running locally, you can access it through your web browser at:
Make sure to replace PORT
with the actual port number you've specified.
Feel free to adapt and customize the provided instructions according to your preferences. If you have any questions or encounter issues, please refer to the Gordian documentation or reach out for assistance Email Me.