farhang / b2b-backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wallex B2B

Intergration tests Build

Todo

  • Input Validations
  • Organize DTOs
  • Error handling
  • Find a structure for responses
  • Decide where we should put http middlewares
  • Move the secret key to environment variables
  • Remove redundant codes
  • Add swagger
  • Use a library for environment variables
  • Fix docker compose up postgresDB
  • Enhance log management messages (we use log forwarding in digital ocean)
  • Install swagger & ginkgo locally
  • Add expiration time to jwt
  • Split main.go into modules
  • Use A Library for Dependency injection
  • Add benchmarks
  • Remove Kavenegar token from .env.dev
  • Move Repository layer logics to usecase layers in all domains
  • Remove Users's Password from some APIs
  • Serialize all APIs
  • Add expiration time to user-plans
  • Add all DTOs to Swagger
  • Enhance Error handling in all layers

Getting started

docker compose up postgresDB 
make run

Testing

run intergration tests

go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo
ginkgo -v test/...

Documentation

generate swagger

go install github.com/swaggo/swag/cmd/swag@latest
make swagger

the swagger-ui is served in $BASE_URL/swagger/index.html

Contributing guidelines

  1. Please treat git with Conventional Commits.
  2. Please do not push directly in main branch, instead of that create a pull request.
  3. Make sure all actions are passed while creating pull request.
  4. For now Issues should be closed only by maintainers.

About


Languages

Language:Go 99.7%Language:Dockerfile 0.2%Language:Makefile 0.1%