- 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"
}
}
- create
.env
file in root your project and add
PORT=3000
JWT_SECRET_KEY=yousecretstring
- add your environments
- -q, --quantity
Usage example:
npm run seed -- -q 45
or
npm run seed