brew install postgresql
python3 -m venv env
source env/bin/activate
deactivate
pip3 install -r requirements.txt
sudo ln -s /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/config-3.8-darwin
docker-compose build
docker-compose up -d
- Connect to api app in docker
- Run this command to view the container ids:
docker ps
- Run this command to get into the postgres docker container:
docker exec -it app_container_id bash
- To run tests do this command:
python3 manage.py test
- Run the following
pip install wheel
pip install refextract
brew install libmagic
python3
from refextract import extract_references_from_file
Endpoints | HTTP Method | Action |
---|---|---|
api/articles | GET | To retrieve articles. Defaults to 50 articles. Set the page and page_size parameters to |
POST | /api/user/login | To login an existing user account |
POST | /api/causes | To create a new cause |
GET | /api/causes | To retrieve all causes on the platform |
GET | /api/causes/:causeId | To retrieve details of a single cause |
PATCH | /api/causes/:causeId | To edit the details of a single cause |
DELETE | /api/causes/:causeId | To delete a single cause |