Britecore-app
Favorite-things is an API that enables you to keep track of all you favorite things. It is hosted at 'https://favorite-things-back.herokuapp.com'
- Python 3
- Django Rest Framework
- PostgreSQL
- Docker
- docker-compose
The front-end service is built using the Vue. Hosted on heroku https://favorite-things-front.herokuapp.com/v1/
Ensure to install the above technologies
listed before you start.
$ git clone https://github.com/matthewacha/favorite-things.git
$ cd favorite-things
$ virtualenv -p python3 venv
$ source venv/bin/activate
For Mac
export PORT=<database port> DB_HOST=<database host> DB_PASSWORD=<database passord> DB_USER=<database user> DB_NAME=<databse name>
pip3 install -r requirements.txt
$ python3 manage.py migrate
$ python3 manage.py runserver
$ python3 manage.py test
$ coverage run --source='.' ./manage.py test
$ docker-compose build
$docker-compose up
Documentation for the usage of the API endpoints can be found at http://127.0.0.1:8000/docs/ when running a local server.