A nestJS based rest api
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).$ yarn i
# watch mode
$ yarn run start:dev
# production mode
$ yarn run start:prod
# 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/
- Expenses functionality: crud, list by filters such as week, totals
- Adding passport and guards to control route access
- Testing
- Swagger documentation