Skip to content

Manage your spending on subscriptions (NestJS/React)

License

Notifications You must be signed in to change notification settings

loburets/SubControl

Repository files navigation

SubControl - work in progress

This repository includes frontend, backend and landing for the project

Backend

Technologies

  • TypeScript
  • NestJS
  • Prisma ORM
  • PostgreSQL

Some used best practices:

  • The Testing Trophy instead of the testing pyramid (the tests are here)
  • Integration tests made for controllers and they are ready to be run in parallel on the same DB
  • DB Migrations
  • DTOs for requests to prevent injections
  • DTOs for responses to not expose sensitive fields
  • Same DTOs are shared between frontend and backend to have proper types
  • Enum for fields that have a limited set of values in Prisma and in Request/Responses types (example)
  • Swagger documentation generated per code and can run requests on behalf of a test user
  • Money are stored as cents (integer value)
  • Winston logger with different transports for different environments
  • BugSnag integration (Sentry alternative)

About

Manage your spending on subscriptions (NestJS/React)

Resources

License

Stars

Watchers

Forks