Simple imdb-like API using NestJS and PostgreSQL.
Documentation is available here
docker-compose up
email: demo@example.com
password: demo
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
-
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
- 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.