Giter Club home page Giter Club logo

boardcamp-api's Introduction

Summary

Web Development Project using React and Sass — Front end

Built With

Nodejs PostgresSQL Expressjs Git

Requirements

  • Categories CRUD

    • Categories table SCHEMA

        {
          id: 1,
          name: 'Strategy',
        }
    • List all categories endpoint | GET '/categories'

    • Create a new gategory endpoint | POST '/categories'

  • Games CRUD

    • Games table SCHEMA

        {
          id: 1,
          name: 'Monopoly',
          image: 'http://',
          stockTotal: 3,
          categoryId: 1,
          pricePerDay: 1500,
        }
    • List all games endpoint | GET '/games'

    • Create a new game endpoint | POST '/games'

  • Customers CRUD

    • Customers table SCHEMA

        {
          id: 1,
          name: 'John doe',
          phone: '21998899222',
          cpf: '01234567890',
          birthday: '1992-10-05'
        }
    • List all customers endpoint | GET '/customers'

    • Search a customer by id endpoint | GET '/categories/:id'

    • Create a new customer endpoint | POST '/customers'

    • Update a customer endpoint | PUT '/categories'

  • Rentals CRUD

    • Rentals table SCHEMA

        {
          id: 1,
          customerId: 1,
          gameId: 1,
          rentDate: '2021-06-20',
          daysRented: 3,
          returnDate: null,
          originalPrice: 4500,
          delayFee: null
        }
    • List all rentals endpoint | GET '/rentals'

    • Create a new rental endpoint | POST '/rentals'

    • Return a rental endpoint | POST '/rentals/:id/return'

    • Delete a rental endpoint | DELETE '/rentals/:id'

  • Bonus (optional)

    • Pagination to every list all endpoints | SQL offset, limit
    • Filtering by date to rentals endpoint | HTTP parameters 'status=open/closed', 'startDate={date}'
    • Revenue Metrics endpoint | GET '/rentals/metrics'
    • Number of Rentals endpoint | SQL count, group by

Study Playlist

In this section I included all Youtube content I used or refered to while studying for this project. Keep in mind that most of these videos contain information that was not previously studied during class, which may affect some parts of the code that contain these extras.

Youtube

Contact

LinkedIn Slack

boardcamp-api's People

Contributors

nivaldofarias avatar

Stargazers

 avatar  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.