Skip to content

Latest commit

 

History

History
40 lines (35 loc) · 1020 Bytes

File metadata and controls

40 lines (35 loc) · 1020 Bytes

DjangoAPI

The Django backend API endpoints for the app.

Setup

Postgres installation (for development environment)

  • Follow the instructions here
  • Database details
    • Name: mdm
    • User: mdm_user
    • Password: InchOwiL

Pipenv installation

  • Execute these commands from this project's root.
  • Install the pipenv package (only have to do it once).
    $ pip install pipenv
  • Open the virtual environment shell.
    $ pipenv shell
  • Install all the packages from Pipfile
    $ pipenv install

Using the project

  • Execute these commands inside the pipenv shell opened from the above steps.
  • Make and run migrations:
    $ python manage.py makemigrations
    $ python manage.py migrate
  • Run server:
    $ python manage.py runserver
  • Open browser and access the website on 127.0.0.1:8000