Giter VIP home page Giter VIP logo

biglab_2-'s Introduction

BigLab 2 - Class: 2022 [WA1-AJ/WA1-KZ]

Team name: BEMO

Team members:

  • s304812 BEATRICE PIRAS
  • s304811 OMAR ANDRES ORMACHEA HERMOZA
  • s295805 MOTRASH MOHAMED KHALED HASSAN ALY
  • s302845 ENES SEMIH YARALI

Instructions

A general description of the BigLab 2 is avaible in the course-materials repository, under labs. In the same repository, you can find the instructions for GitHub Classroom, covering BigLabs and exam sessions.

Once you cloned this repository, please write the group name and names of the members of the group in the above section.

In the client directory, do NOT create a new folder for the project, i.e., client should directly contain the public and src folders and the package.json files coming from BigLab1.

When committing on this repository, please, do NOT commit the node_modules directory, so that it is not pushed to GitHub. This should be already automatically excluded from the .gitignore file, but double-check.

When another member of the team pulls the updated project from the repository, remember to run npm install in the project directory to recreate all the Node.js dependencies locally, in the node_modules folder. Remember that npm install should be executed inside the client and server folders (not in the BigLab2 root directory).

Finally, remember to add the final tag for the final submission, otherwise it will not be graded.

Registered Users

Here you can find a list of the users already registered inside the provided database. This information will be used during the fourth week, when you will have to deal with authentication. If you decide to add additional users, please remember to add them to this table (with plain-text password)!

email password name
[email protected] password John
[email protected] password Mario
[email protected] password Test

List of APIs offered by the server

  • It estabilishes a login session for a user

    Returns status 201 on success - Returns status 401 on wrong login

  • It ends the session for a user

  • It returns the session of authenticated user

    Returns status 200 on success (authenticated user) - Returns status 401 on not authenticated case

  • It returns the list of all films stored in the database for the user of the specified id

    Parameter to insert : id (user)

    Returns for example, a map of
    { id: film.id, name: film.name, favorite: film.favorite, watchdate: film.watchdate, rating: film.rating, user: film.user }

    Returns status 200 on success - Returns status 500 on database error

  • It returns the list of the favourite films stored in the database for the user of the specified id

    Parameter to insert : id (user)

    Returns for example, a map of
    { id: film.id, name: film.name, favorite: film.favorite, watchdate: film.watchdate, rating: film.rating, user: film.user }

    Returns status 200 on success - Returns status 500 on database error

  • It returns the list of the best rated films stored in the database for the user of the specified id

    Parameter to insert : id (user)

    Returns for example, a map of
    { id: film.id, name: film.name, favorite: film.favorite, watchdate: film.watchdate, rating: film.rating, user: film.user }

    Returns status 200 on success - Returns status 500 on database error

  • It returns the list of all films seen in the last month that are stored in the database for the user of the specified id

    Parameter to insert : id (user)

    Returns for example, a map of
    { id: film.id, name: film.name, favorite: film.favorite, watchdate: film.watchdate, rating: film.rating, user: film.user }

    Returns status 200 on success - Returns status 500 on database error

  • It returns the list of all unseen films stored in the database for the user of the specified id

    Returns for example, a map of
    { id: film.id, name: film.name, favorite: film.favorite, watchdate: film.watchdate, rating: film.rating, user: film.user }

    Returns status 200 on success - Returns status 500 on database error

  • It returns the film corresponding to the chosen id

    Parameter to insert : id

    Returns for example, an instance of the type: { id: film.id, name: film.name, favorite: film.favorite, watchdate: film.watchdate, rating: film.rating, user: film.user }

    Returns status 202 on success - Returns status 500 on database error

  • It inserts in the database a new film

    Body to insert: all the necessary data to register the film: Name, Favorite, Watchdate, Rating, User

    Returns status 200 on success - Returns status 500 on database error - Returns status 422 on body/parameter errors

  • It updates the data of a film in the database

    Parameter to insert : id

    Body to insert: all the necessary data to modify the film: Name, Favorite, Watchdate, Rating, User

    Returns status 200 on success - Returns status 500 on database error - Returns status 422 on body/parameter errors

  • It updates the 'favorite' field in the selected film in the database to favorite

    Parameter to insert : id

    Returns status 200 on success - Returns status 500 on database error

  • It updates the 'favorite' field in the selected film in the database to not favorite

    Parameter to insert : id

    Returns status 200 on success - Returns status 500 on database error

  • It updates the 'rating' field in the selected film in the database

    Parameters to insert : id, rating

    Returns status 200 on success - Returns status 500 on database error

  • It deletes the selected film from the database

    Parameter to insert : id

    Returns status 200 on success - Returns status 500 on database error

biglab_2-'s People

Contributors

enessyarali avatar

Watchers

 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.