@nortasian/starter
v1.0.8
Published
A Simple Node.js Express starter project
Downloads
21
Maintainers
Readme
Nortasian | Express-Prisma Node.js Starter
A Simple Node.js Express starter project.
Installation
npx @nortasian/starter [project name] --o [sequelize OR prisma] --db [postgresql OR mysql] --ts
cd [project name]
yarn db:migrate
Quick Start
npx @nortasian/starter project --o sequelize --db postgresql --ts
cd project
yarn db:migrate
🚀 Run Locally
Run the project
yarn dev
OR
npm run dev
🍄 List of available commands
Generate Migration
yarn generate:migration [file name]
Generate Seeder
yarn generate:seeder [file name] -m [model name] --module [module name]
i.e. generate a seeder file as user.seeder.ts for user module and use the user model.
yarn generate:seeder user -m user --module user
Run Database Seeders (Generate fake data)
yarn db:seed
Run Database Migrations
yarn db:migrate
Undo Last Database Migrations
yarn db:migrate:undo
Reset Database Migrations
yarn db:migrate:undo:all
🧪 Running Tests
To run tests, run the following command
yarn test
OR
npm run test
Authors
License
Nortasian is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.