mesaquejunior / nodejsdatabasefileupload

This application was developed to meet the requirements of GoStack

Repository from Github https://github.commesaquejunior/nodejsdatabasefileuploadRepository from Github https://github.commesaquejunior/nodejsdatabasefileupload

GoStack

Challenge 6: Database and file upload in Node.js

🚀 About the challenge

The challenge goal is to create a Rest API with Node JS with Typescript using the express framework and the model, repositories and services concepts. It's also necessary using TypeORM with PostgreSQL to persist data and use Multer to send files.

  • GET /transactions: to list all transactions and sum of all transactions spliting by income, outcome and the total;
  • POST /transactions: to register a new transaction;
  • DELETE /transactions/:id: to delete a transaction based on its id;
  • POST /transactions/import: to upload a csv file with the necessary data to create multiple transactions. Each line of the file is a new transaction.

☕ Testing the routes with the Insomnia

If you have the Insomnia Rest installed, click on the link below to load the configuration in your app 😁.

Run in Insomnia}

About

This application was developed to meet the requirements of GoStack


Languages

Language:TypeScript 75.6%Language:JavaScript 24.4%