Skip to main content

An Django Rest API for fetching and creating trips and their schedules.

Project description

Django Trips API

This is a Django Rest API for fetching and creating trips and schedules.

Setup

  • Kick the docker build using make build. This can take sometime.
  • Migrate database. Once the build has been completed, spin up the docker and migrate the database.
> make run
> make shell 
> make update_db
  • Create a superuser with username admin.
> make shell
> python manage.py createsuperuser
  1. Create batch of trips make new_trips. This will create random (100) trips
> python manage.py new_trips
OR
> make new_trips

Docker Commands

Run server

make run

Server logs

make logs

Attach container

make attach

Stop Container

make stop

Destroy

caution, this will remove all your data.

make destory

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-trips-0.2.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

django_trips-0.2-py3-none-any.whl (2.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page