This application contains:
- User signin/signup/restore with 2FA
- Simple RBAC for users, based on roles
- Demonstration how to work with many-to-many relations in postgres (relations between users, roles, accounts)
- Using DTO pattern
- Using partitioning by list and range to keep bunches of timeseries data
- Simple metrics collector (you can pass any api endpoind to query and start to collect metrics by keyword using inner cron)
- Migrations by pg-migrations
- Class-based architecture
- Vue2 based frontend using Vuex
- Docker configuration Stack: express pg vue2 Postgres DATABASE_URL=postgresql://services:services@postgres:5432/services
npm run migration:create -- {name}
- Create database migration file with{name}
. NeedDATABASE_URL
environment variable.npm run migration:run
- Start database migrations. NeedDATABASE_URL
environment variable.npm run migration:down
- Revert last database migration. NeedDATABASE_URL
environment variable.
DOCKER_BUILDKIT=0 docker-compose up -d