Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fabogit/anubi-backend
https://github.com/fabogit/anubi-backend
nestjs typescript
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/fabogit/anubi-backend
- Owner: fabogit
- Created: 2022-05-11T16:10:51.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-13T16:15:10.000Z (over 2 years ago)
- Last Synced: 2024-11-06T20:38:10.719Z (about 2 months ago)
- Topics: nestjs, typescript
- Language: TypeScript
- Homepage:
- Size: 479 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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