The api arquitecture is based on the good practices for Fast-API by @tialongo, for more information check https://fastapi.tiangolo.com
All the models should have the same acces methods, you should check http://localhost:8000/docs for testings all the methods
GET /items
Parameter | Type | Description |
---|---|---|
token |
string |
Required. Your API key |
GET /api/items/${id}
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of item to fetch |
POST /items/
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of item to fetch |
PUT /items/${id}
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of item to fetch |
DELETE /items/${id}
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of item to fetch |
Clone the project
git clone ${project_link}
Go to the project directory
cd ${project_name}
Create a virutal environment
virutalenv venv
Activate the virutalenv
. ./venv/bin/activate
Install dependencies
python3 -m pip install -r requirements.txt
Update the db
alembic revision --autogenerate -m "made some changes"
alembic upgrade head
Start the server
cd app
python3 main.py
Start the celery server
cd app
celery -A celery_app worker -B -l info
To deploy this project run
./install.sh
The project is licensed only for the use by the team.