Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 968 Bytes

File metadata and controls

40 lines (30 loc) · 968 Bytes

Fitness Tracker API

Circle CI Badge

This project was built to show how to use Django Rest Framework Signature and Django Rest Framework Simplify.

Setup

Setup Postgres

create user ft with password 'test1234' CREATEDB;
create database fitness_tracker_local with owner ft;

Setup Python Environment

virtualenv ~/env/ft-api-env --python=python3
vi ~/.bashrc
alias ftapi='source ~/env/ft-api-env/bin/activate; cd ~/ft-api'
source ~/.bashrc
ftapi
pip install -r requirements.txt

If you get an egg_info error

sudo apt-get install libmysqlclient-dev

Server

python manage.py runserver

Tests

python manage.py test