Don't know what to watch? This is the app for you!
Created by:
var Rushil_Perera = "https://github.com/silverAndroid";
var Brandon_Danis = "https://github.com/BrandonDanis";
API Endpoints:
var movies = 'routes/movies-route.js';
GET /movies //returns all movies
GET /specific-movie //returns a specific movie
GET /all-genres //returns all genres
GET /getMoviesFromGenre //returns all movies from a specific genre
var movies = 'routes/directors-route.js';
GET /directors //returns all directors
GET /director //returns a specific director
var users = 'routes/users-route.js';
POST /users //adding a user to the database
GET /users //returns a specific user
DELETE /users //deletes the specified user
Features:
- Cookie based session authentication
- Password hashing
- Fully dynamic front-end design
How to run:
- Install all node dependencies
- Create the database schema using database/db.sql (setting up postgres https://www.digitalocean.com/community/tutorials/how-to-create-remove-manage-tables-in-postgresql-on-a-cloud-server)
- Populate the database with the python scripts in /scripts
python populate.py DATABASE_NAME localhost DB_USER DB_PASS
python populateCrew.py DATABASE_NAME localhost DB_USER DB_PASS
python retrieve_trailers.py DATABASE_NAME localhost DB_USER DB_PASS
- Run the app by running 'node index.js' (note: You might need to update the db url on all the /lib scripts to be able to connect to your database)