Skip to content

pakawaka1/YearOneMovieList

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

228 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YearOneMovieList

A full stack application which allows users to search, find information and add reviews for movies.

How to Get Started

  1. Requirements (with links to download)

  2. Database Setup

    • Once PostgreSQL is installed, we need to connect to the database. This link will give you directions on connecting via psql or pgAdmin: https://www.enterprisedb.com/postgres-tutorials/connecting-postgresql-using-psql-and-pgadmin

    • Once you are connected, run this command in the SQL Shell to create the database and tables for this app:

      CREATE DATABASE moviereviews;

      Screen Shot 2021-08-18 at 9 46 23 AM
    • Now we need to connect to the the new moviesreview database:

      \c moviereviews;

      Screen Shot 2021-08-18 at 9 51 08 AM

    • Our tables will be created in the app using Sequelize's sync() method.

  3. App Setup (in Terminal)

    • Now in your chosen directory, run this command:

      git clone git@github.com:pakawaka1/YearOneMovieList.git

    • Next, run the following two commands:

      cd YearOneMovieList

      npm install

    • Then, in the config directory of the app, create a new file called config.env. In that file, insert your password for Postgres as well as the RAPID_API key:

      Screen Shot 2021-08-18 at 11 35 19 AM

    • Using Sequelize's sync() method, I was not able to use a variable for my password, so you may need to manually insert it as config/db.js

      Screen Shot 2021-08-18 at 11 37 34 AM

    • Now run the command nodemon to start the server at http://localhost:5000/.

  4. App Usage

    • Here is the homepage:

      Screen Shot 2021-08-18 at 11 46 53 AM
    • In the search bar, I entered "godfather", hit the search button, and received many results, including:

      Screen Shot 2021-08-18 at 11 49 34 AM
    • When I clicked on the "Get Info" button for "The Godfather: Part II", I received:

      Screen Shot 2021-08-18 at 11 51 47 AM
    • Then, when I clicked on the "Add Review" button:

      Screen Shot 2021-08-18 at 11 49 34 AM
    • When I clicked on the "Get Info" button for "The Godfather: Part II", I received:

      Screen Shot 2021-08-18 at 11 51 47 AM
    • Then, when I clicked on the "Add Review" button:

      Screen Shot 2021-08-18 at 11 53 38 AM
    • When I select "Thumbs Up" and click the "Submit Review" button:

      Screen Shot 2021-08-18 at 11 54 48 AM Screen Shot 2021-08-18 at 11 56 22 AM
    • When I select "Thumbs Down" and click the "Submit Review" button:

      Screen Shot 2021-08-18 at 11 57 48 AM Screen Shot 2021-08-18 at 11 58 17 AM
    • Anytime I need to return to search click on "Movie Finder":

      Screen Shot 2021-08-18 at 11 24 22 PM

About

A full stack application which allows users to search, find information and add reviews for movies.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors