Skip to content

bngbog/nestjs-expenses-be-rest-api

Repository files navigation

A nestJS based rest api

Description

This is a JWT based api which allows a user to register, login, add, view, edit or delete expenses.

The application uses TypeORM and sqlite. The code is TypeScript (also recommended by Nest).

Installation

$ yarn i

Running the app

# watch mode
$ yarn run start:dev

# production mode
$ yarn run start:prod

Postman

# Register a user:
# POST http://localhost:3000/auth/register/
# Body: JSON
{
    "name": "bog2",
    "email": "[email protected]",
    "password": "987654321"
}


# Login a user:
# POST http://localhost:3000/auth/login/
# Body: JSON
{
    "email": "[email protected]",
    "password": "987654321"
}


# List all users:
# GET http://localhost:3000/user/list/

This is work in progress and misses:

  • Expenses functionality: crud, list by filters such as week, totals
  • Adding passport and guards to control route access
  • Testing
  • Swagger documentation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published