Skip to content
A simple django app made to demonstrate building apis with django-rest-framework
Python JavaScript HTML CSS Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
api
frontend
timeline
.dockerignore
.gitignore
Dockerfile
README.md
docker-compose.yml
manage.py
nginx-app.conf
requirements.txt
supervisor-app.conf
uwsgi.ini
uwsgi_params

README.md

2019 coop uk trip timeline app

A simple django app made to demonstrate building apis with django-rest-framework

Running

With docker

  1. Install docker and docker compose (follow the instructions for your platform https://docs.docker.com/compose/install/)

  2. Start the server and dependencies

     docker-compose up
    
  3. Run database migrations (docker-compose must be running, so use a separate terminal)

     docker-compose exec web python manage.py migrate 
    
  4. Collect static files and build frontend code

     docker-compose exec web python manage.py collectstatic
     docker-compose exec -w /code/frontend web yarn install
     docker-compose exec -w /code/frontend web yarn build 
    
  5. Create a superuser (this user will have access to the admin interface)

     docker-compose exec web python manage.py createsuperuser
    

    follow the instructions to create the user

  6. The app should be now accessible in http://localhost:8000

    you can access the admin to create new timeline entries in http://localhost:8000/admin and logging in with the superuser you created in step 4

You can’t perform that action at this time.