Giter VIP home page Giter VIP logo

moovy's Introduction

Moovy

Backend in NestJs, Postgres/Docker. Using Open Movie Database free tier API key.

Figma

Basic things to do

  • User Authentication, enviroment variables and protected routes (jwt authentication).

  • Search movies

  • MovieList

  • Save watched movies

  • Delete watched movies

  • Every movie has an unique identifier: "imdbID"

  • Audios -> (MovieList extention)

  • User sends audio file review of watched movie (upload, retrieve all from user and delete audio)

  • Add and remove movies from personal library

  • Listen to audio review

  • Filter movies that user registered an review

  • Filter movies pending a review

Instructions on how to use

Start npm as developer env.

npm run start:dev

Get postgres database up 'n running.

docker-compose up

Docker gets two services going: postgres and adminer.

Adminer is a local web based database visualization tool running on:

http://localhost:8080

Postgres itself is running on:

http://localhost:5432

With default credentials. Default password used for testing is "123ronaldo".

API Routes


### User Managment
# ---------------------------------------

> POST /users/create_user
# Create new user and get jwt token

> POST /auth/login
# Login (get jwt token)

> GET /auth/profile
# Get that user's profile

### User Movie List managment
User needs to be authenticated to perform all of this operations
# ---------------------------------------

> POST /omdb/retrieve_movies_from_current_user
# Uses jwt token to retrieve all movies of authenticated user
# (empty request body)

> POST /omdb/delete_movie_from_list
# Uses jwt token to check user, and deletes a movie
# on that user's movie list given ImdbId

> POST /omdb/add_movie_to_list
# Uses jwt token to check user,
# and adds movie (ImdbId, movie name, poster) to MovieList (with username and userId)
# save-movie.dto.ts

> GET /omdb/search_movies/:name
# Retrieve movies from OMDB
# Used for searching movies

> POST /omdb/search_list/:name
# Retrieve movies from user list
# Used for searching movies in user's list

### Audio reviews managment 
User needs to be authenticated to perform all of this operations
# ---------------------------------------

> POST /upload/:imdbID
# Upload new audio

> GET /upload/retrieve/:imdbID
# Get one audio about one given movie

> GET /upload/retrieveAll
# Get all audios that belong to an user

> POST /upload/deleteAudio/:imdbID
# Delete one of user's audios

> GET /upload/retrieveMoviesReviewed
# list of movies reviewed
# Gives back a list of movies!

> GET /upload/retrieveMoviesNotReviewed
# list of movies that still need a review
# Gives back a list of movies!

moovy's People

Stargazers

Ignatius Francis avatar

Watchers

Guilherme Braga avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.