Skip to content

whygee-dev/movierating

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Movie rating

A React Native, NestJS, GraphQL & Prisma project.

Discover movies, add your favorite to your list with a review & rating, find out other people's list.

Installation

Install dependencies

  cd app
  npm install // or yarn
  cd ../nest-api
  npm install // or yarn

Make sure you are running a postgresql server locally and create a database named movierating then:

    npx prisma db push  // or yarn prisma db push
    npx prisma generate // or yarn prisma generate

The 2 above commands will push migrations to your database and generate js artifacts respectively

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

expo app .env file

TMDB_KEY=[YOUR TMDB API KEY]

nestjs .env file

DATABASE_URL="postgresql://[POSTGRES_USERNAME]:[POSTGRES_PASSWORD]@localhost:5432/movierating?schema=public"

jwtSecret=[A_RANDOM_KEY]

ENV=DEV

TMDB_KEY=[YOUR TMDB API KEY]

If your app can't connect to the API, manually put the api uri in app.json in extra.api field for example: "extra": { "api": "http://localhost:5000" }

Screenshots

App Screenshot App Screenshot App Screenshot App Screenshot App Screenshot App Screenshot App Screenshot

Roadmap

  • Register, Login
  • Discover, search & filter movies
  • Add a movie to list with rating & short review
  • Update user info
  • Discover other people's reviewed movies, like a review
  • Stricter react navigation types

Disclaimer

** The project was not tested with macOS / iOS therefore unforeseen bugs can occur, feel free to open issues **

The published expo app (on the releases section) won't work in iOS devices due to Apple limitation.