Skip to content

rrafaelc/CS50-Final-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo of the project

This is a project where you can track TV shows and movies, to remember which episode did you stop at, if you have already completed a movie or TV, is watching, is on hold, is dropped or plan to watch it

Environment Variables

  • Create a file called .env.local and type this variables

  • DATABASE_URL - postgresql://postgres:password@localhost:5432/mydb

  • NEXTAUTH_URL - http://localhost:3000

  • NEXTAUTH_SECRET - secret

  • MOVIEDB_API_KEY - Get an api key here

Optional

  • PATH_TO_DELETE_ACCCOUNTS - http://localhost:3333/api/delete_accounts

Install dependencies:

yarn

Using prisma CLI:

Just for using prisma CLI, the DATABASE_URL needs to be in .env file, when done you can remove

npx prisma generate

# For local database development
npx prisma migrate dev

# For online database production
npx prisma db push

Start server:

yarn dev
# Or
yarn build && yarn start

How to use

CS50 Final Project

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

License

MIT