- Linux Ubuntu
- Apple OS X
- WSL (click here to see how to configure)
- Node v12+ (NVM Recommended)
- Docker
- Docker-Compose
- Yarn
- Install all dependencies:
yarn
- Generate Startup files:
yarn gen Start
- Initialize Docker:
docker-compose up -d
- Execute ORM Migrations:
yarn orm:run
- Create Admin User:
yarn seed:run
- Start API REST:
yarn dev
File Import
- Json File:
src/shared/utils/insomnia.json
- URL:
https://raw.githubusercontent.com/lipex360x/gen-api-boilerplate/master/src/shared/utils/insomnia.json
Database | Port | Docker Image |
---|---|---|
PostgreSQL | 5432 | bitnami/postgresql:latest |
MongoDB | 27017 | bitnami/mongodb:latest |
Redis | 6379 | redis:alpine |
To more information, please consult docker-compose.yml
in root path
Starts with yarn
command (ex.: yarn dev
)
gen
: Start Plop Generate
dev
: initialize API in develop mode (TS Files)build
: build app to deploystart
: initialize API in production mode (JS files)
test
: run Unit Teststest:c
: clear cache tests
orm
: execute TypeORM CLIorm:show
: show migrations statusorm:create
: create a clean migrationorm:run
: execute all migrationsorm:revert
: rollback the last migration
seed:config
: show seeds configurationseed:run
: execute all seeds