Giter Club home page Giter Club logo

ioasys-challenge's Introduction

IOASYS BACKEND CHALLENGE - GUILHERME CORRÊA


Functional Requirements

  • Admin

  • Should be able to create a admin user

  • Should be able to edit a admin user

  • Should be able to delete (logical) a admin user

  • User

  • Should be able to create a user

  • Should be able to edit a user

  • Should be able to delete (logical) a user

  • Authentication

  • Should be able to authenticate a user using JWT

  • Movies

  • Should be able to create a movie (only a admin user can create)

  • Should be able to list movies

  • Should be able to filter movies by director, name, genre or actor

  • Should be able to show movie details and the movie average rating from all users

  • Rating

  • A user should be able to rate a movie by a score between 0 and 4

Non-functional Requirements

  • Express.js
  • PostgresSQL
  • TypeORM

Dependencies

Running

  1. Clone this repository
  2. Run npm install to install dependencies
  3. Run cp .env.example .env to copy .env example and setup enviroment variables for the project
  4. Run cp ormconfig.example .ormconfig.jon to copy TypeORM config file and setup the database variables
  5. Run npm run migration:run to create the database
  6. Run npm run seed to seed the database with some data
  7. Run npm run start:dev to start the server

Testing

Run npm run test to run the tests.

Documentation

Postman Collection

Any doubts? Feel free to contact me.

ioasys-challenge's People

Contributors

guilherme-m-correa 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.