-
Notifications
You must be signed in to change notification settings - Fork 6
Getting Started with API
Drew Winstel edited this page Jun 9, 2019
·
2 revisions
Install these packages from your distribution's package manager
- docker
- docker-compose
- python 3.7
- pipenv
The devs have run into all sorts of weirdness running inside Docker for Windows.
Avoid this if you can.
Install Docker Desktop for Mac.
Install Homebrew and install these packages:
- pipenv
Install the latest 64-bit macOS Installer of Python 3.7 from python.org.
- Clone the repository.
- Run from the terminal:
pipenv install --dev
- Run tests to make sure everything works:
docker-compose run --rm web pipenv run ./manage.py test
- Run the API:
docker-compose up
- Make sure you can access the API by going to http://localhost:8000/api/v1/beers/
Seed your database with important values:
docker-compose run --rm web ./manage.py loaddata */fixtures/*.json