Git Product home page Git Product logo

support-project-api's Introduction

Support Project API

This project is an personal project focused in learning. My objective is practice the basics principles of build a simple REST API using Node.js.

I called this project as "Support" because my idea is develop a system where users are enabled to support and sponsor any social project.

Business Rules

  • PUBLIC

  1. All open projects can be public, it means that any public request can get a list of public projects.
    1. GET (/projects).
  • PROJECTS

  1. A project must be created by a registered user. Once a user has been registered, they can create a project. They can specify what category the project belongs to, if the project has a recurrency billing, and set a goal of amount or subscribers.
    1. POST (/new-project) - login required.
  2. Before releasing the project, the user edits or changes any information.
    1. PUT (/edit-project) - login required.
  3. Before releasing, the user can delete the project.
    1. DELETE (/delete-project) - login required.
  4. After creation, the user can release the project.
    1. PUT (/release-project) - login required.
  5. After a project has been created, the user can’t delete the project. Only can archive.
    1. PUT (/archive-project) - login required.
  • USERS

  1. To do any kind of action, the user must be registered.
    1. POST (/register).
  2. After registration, the user must login.
    1. POST (/login).
  3. There are two ways to support a project: donation or subscription. To make a simple donation, the user has to use PIX or Credit Card to pay. To make a subscription, the user has to use a Credit Card.
    1. POST (/payment) - login required.

Architecture

The following diagram show how i thought an architecture to apply 3 core concepts, they are: TDD, Cloud Storage and Migrations.

Technologies

TDD

Jest Supertest

API

Node.js Express Typescript

BUCKET

Amazon S3

Database

PostgreSQL (Docker Container)

support-project-api's People

Contributors

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