Skip to content

unamatasanatarai/django-movie-theater

Repository files navigation

Django Movie Theater

Pusher

create a new pusher app and update settings.py accordingly:

PUSHER_APP_ID = ""
PUSHER_KEY = ""
PUSHER_SECRET = ""
PUSHER_CLUSTER = ""

Facebook

create a facebook app and update seettings.py accordingly:

SOCIAL_AUTH_FACEBOOK_KEY = ''
SOCIAL_AUTH_FACEBOOK_SECRET = ''

Dev Environment

Run the server with:

docker-compose up -d db
docker-compose up -d web

Run the migrations:

docker-compose exec web python manage.py migrate

Provision the database:

docker-compose exec db /usr/lib/postgresql/9.6/bin/psql -Upostgres -f /code/storage/provisions/repertoires.sql
docker-compose exec db /usr/lib/postgresql/9.6/bin/psql -Upostgres -f /code/storage/provisions/rooms.sql

Create superuser for admin panel:

docker-compose exec web python manage.py createsuperuser

start the worker

docker-compose exec web
export C_FORCE_ROOT='true'
python manage.py celeryd --beat

Navigate to:

  1. http://localhost:8000/
  2. http://localhost:8000/admin

Libraries used

env

  1. docker
  2. docker postgres
  3. docker python 2.7

python

  1. Django
  2. psycopg2
  3. social-auth-app-django
  4. pusher
  5. django-celery
  6. django-request

frontend

  1. bootstrap
  2. jquery

uses third party

  1. facebook
  2. pusher

About

Seats picking and purchasign in Django - recruitment task

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published