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.
- All open projects can be public, it means that any public request can get a list of public projects.
- GET (/projects).
- 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.
- POST (/new-project) - login required.
- Before releasing the project, the user edits or changes any information.
- PUT (/edit-project) - login required.
- Before releasing, the user can delete the project.
- DELETE (/delete-project) - login required.
- After creation, the user can release the project.
- PUT (/release-project) - login required.
- After a project has been created, the user can’t delete the project. Only can archive.
- PUT (/archive-project) - login required.
- To do any kind of action, the user must be registered.
- POST (/register).
- After registration, the user must login.
- POST (/login).
- 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.
- POST (/payment) - login required.
The following diagram show how i thought an architecture to apply 3 core concepts, they are: TDD, Cloud Storage and Migrations.
Jest Supertest
Node.js Express Typescript
Amazon S3
PostgreSQL (Docker Container)