alt-art / imdb-like

Simple nest backend to review films

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Imdb-like

Simple imdb-like API using NestJS and PostgreSQL.

Documentation

Documentation is available here

Running trough docker

docker-compose up

Default admin credentials

email: demo@example.com
password: demo

Running locally

Set up a PostgreSQL database and create a .env file in the root directory with the following content:

DATABASE_URL=postgres://user:password@localhost:5432/db_name

Install dependencies:

yarn install

Run prisma commands:

yarn prisma db push

Run prisma seed:

yarn prisma db seed

Run the app:

yarn start:dev

Things that I have done

  • User can register

  • User can login

  • User can see his profile

  • User can update his profile

  • User can delete his profile

  • Admin can create a movie

  • Admin can update a movie

  • Admin can delete a movie

  • User can see all movies

  • User can see a movie

  • User can rate a movie

  • User can see his ratings

  • User can see all ratings

  • User can see all comments

  • User can see a comment

  • User can create a comment

  • User can update a comment

  • User can delete a comment

Things that I would like to do

  • Add tests
  • Add search functionality
  • Add pagination
  • Add sorting
  • Add filtering
  • Add more roles
  • Add more fields to the database like actors, directors, images, etc.

About

Simple nest backend to review films


Languages

Language:TypeScript 96.3%Language:JavaScript 3.0%Language:Dockerfile 0.8%