- Python
- MongoDB
- Flask
- Fork the repository to your Github account
- Copy the link (ends with a .git) of your forked repository
- In a folder of your choice in your local machine, run git clone thelinkyoujustcopied.git
cd referralAPI
cd referralAPI
- Create a virtual environment
py -3 -m venv venv
- Activate virtual environment
venv\Scripts\activate
(for Windows) andvenv\bin\activate
(for Mac) pip install -r requirements.txt
(only for the first time after clonning)
- Locally
- Test the API with POSTMAN
Example for POST request :
-
Set the URL to
http://localhost:3434/run_model/add_user
to add a user.Sample JSON Data to contact route:
{ "ref_username":"debo_leen", "username":"jdoe123", "name":"John Doe", "dob":"01/01/2000" }