Skip to content

soltanireza65/daal-challenge

Repository files navigation

Required tools

  • docker
  • docker-compose
  • make (optional)
  • pnpm

Developement

make dev

or

docker-compose up --build

http endpoints

GET /api/wallet/balance/1 HTTP/1.1
Host: localhost:3000
POST /api/wallet/money HTTP/1.1
Content-Type: application/json
Host: localhost:3000

{
  "user_id": 1,
  "amount": 1
}
GET /api/audit/ HTTP/1.1
Host: localhost:3001

or you can use requests.http

Database

  • mongodb

Test

make test

or

pnpm test

Ci/CD

  • gitlab-ci
  • obviously its not working now:
  • required tools:
    • kubectl
    • kubernetes cluster
    • gitlab-ci (move repo to gitlab)
    • ci base image with kubeConfig initialized

Todo

  • proper response codes
  • proper error handling

Notes

  • walletService has hardCoded userIds 1 and 2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published