Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fabogit/anubi-backend


https://github.com/fabogit/anubi-backend

nestjs typescript

Last synced: 8 days ago
JSON representation

Awesome Lists containing this project

README

        


Nest Logo

# Anubi Digital coding interview Backend

A simple Nest JS backend implementation to showcase applicants' skills.

## Start the project

`npm install` &&
`npm run start:dev`

Backend

- Paginate the `GET:transactions` endpoint to return 5 elements per page (hint: use the date as index)

=> `Test GET /transactions/:page` => `http://localhost:3081/v1/transactions/1`

=> `Test GET /transactions` => `http://localhost:3081/v1/transactions`

- Implement the `GET:balances` endpoint so to have the current balance for each user and asset

=> `Test GET /balances/:userId` => `http://localhost:3081/v1/balances/u1`

=> `Test GET /balances/` => `http://localhost:3081/v1/balances`

- Implement the `processUserInterests` method inside the class `AppService`

- Setup a GraphQL endpoint and add a mutation that given a user id, an asset id and a date it will invoke `processUserInterests` method