Skip to content

Latest commit

 

History

History
50 lines (39 loc) · 720 Bytes

README.md

File metadata and controls

50 lines (39 loc) · 720 Bytes

Prepare

  1. create ormconfig.json file in root your project and add
{
  "type": "postgres",
  "host": "tai.db.elephantsql.com",
  "port": 5432,
  "username": "kekbxmoo",
  "password": "**************",
  "database": "kekbxmoo",
  "synchronize": false,
  "entities": [
    "src/modules/users/user.model.ts",
    "src/modules/groups/group.model.ts"
  ],
  "migrations": [
    "src/migration/*.ts"
  ],
  "cli": {
    "migrationsDir": "src/migration"
  }
}
  1. create .env file in root your project and add
  PORT=3000
  JWT_SECRET_KEY=yousecretstring
  1. add your environments

CLI tool 1 option

  1. -q, --quantity

Usage example:

npm run seed -- -q 45

or

npm run seed