MyWallet backend, a simple app for financial control.
Try out the fronted app at https://mywallet-eumerme.vercel.app/
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.
- Clone this repository
- Run
npm i
to installl dependencies - Create a
.env
file with aPORT
and aMONGO_URI
as in.env.example
file - Run
npm run dev
to start the local server
- Request:
{
"name": "Seu nome",
"email": "Seu email",
"password": "Sua senha",
"confirmPassword": "Sua senha"
}
- Response: 201 Created
- Request:
{
"email": "Seu email",
"password": "Sua senha"
}
- Response: 200 Ok
- Response: 200 Ok
- Request:
{
"email": "Seu email",
"value": 1290,
"description": "Almoço",
"type": "credit",
"date": "07/01"
}
- Response: 201 Created
- Request:
{
"value": 1500,
"description": "Janta",
"date": "07/01"
}
- Response: 200 Ok
- Response: 200 Ok
{
"_id" : ObjectId("63bd75c68c24f6235192c091"),
"email": "Seu email",
"value": 1290,
"description": "Almoço",
"type": "credit",
"date": "07/01"
}
- Response: 200 Ok