Git Product home page Git Product logo

projeto13-mywallet-back's Introduction

projeto13-mywallet-back

MyWallet backend, a simple app for financial control.

Try out the fronted app at https://mywallet-eumerme.vercel.app/

About

This project is a simple finance manager in which you can register earnings and expenses. You will always be up on of your bank balance, ensuring greater control over your financial life.

How to run

  • Clone this repository
  • Run npm i to installl dependencies
  • Create a .env file with a PORT and a MONGO_URI as in .env.example file
  • Run npm run dev to start the local server

API endpoints

POST /signup

  • Request:
{
	"name": "Seu nome",
	"email": "Seu email",
	"password": "Sua senha",
	"confirmPassword": "Sua senha"
}
  • Response: 201 Created

POST /login

  • Request:
{
	"email": "Seu email",
	"password": "Sua senha"
}
  • Response: 200 Ok

POST /logout

  • Response: 200 Ok

POST /transactions

  • Request:
{
	"email": "Seu email",
	"value": 1290,
	"description": "Almoço",
	"type": "credit",
	"date": "07/01"
}
  • Response: 201 Created

PATCH /transactions/:id

  • Request:
{
	"value": 1500,
	"description": "Janta",
	"date": "07/01"
}
  • Response: 200 Ok

GET /transactions

  • Response: 200 Ok
{
	"_id" : ObjectId("63bd75c68c24f6235192c091"),
	"email": "Seu email",
	"value": 1290,
	"description": "Almoço",
	"type": "credit",
	"date": "07/01"
}

DELETE /transactions/:id

  • Response: 200 Ok

projeto13-mywallet-back's People

Contributors

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