1.0.8 โ€ข Published 2 years ago

@nortasian/starter v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Nortasian | Express-Prisma Node.js Starter

A Simple Node.js Express starter project.

GitHub Workflow Status Made with Node.js Made with Express js Made with Sequelize Made with Prisma Made with TypeScript Made with Express js LICENSE

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.