Skip to content

Opinionated project template for a modern Node.js/TypeScript apps with native ESM

Notifications You must be signed in to change notification settings

ibnumusyaffa/node-ts-esm-starter

Repository files navigation

Node Typescript ESM

Opinionated project template for a Node.js & TypeScript apps with native ESM

Stacks

Quick Start

1. Clone repo

clone repo without commit history

git clone --depth=1 https://github.com/ibnumusyaffa/node-ts-esm-starter my-project-name

2. Install dependencies

npm install

3. Run the development server

npm run dev

Available scripts

  • npm run dev - Starts the application in development mode at.
  • npm run build - Compile the application.
  • npm start - Starts the application in production mode.
  • npm run lint - Check code using ESLint.
  • npm run lint:fix - Fix autofixable ESLint problem.
  • npm run format:all - Format code using Prettier for all files.
  • npm run format:check - Check code format using prettier.
  • npm run db:generate - Generate migration from changed schema.
  • npm run db:migrate - Apply migration to database.
  • npm run worker:send-email - Run example worker.

Kysely/migration scripts

  • npx kysely migrate:down - Undo the last/specified migration that was run.
  • npx kysely migrate:latest - Update the database schema to the latest version.
  • npx kysely migrate:list - List both completed and pending migrations.
  • npx kysely migrate:make - Create a new migration file.
  • npx kysely migrate:rollback - Rollback all the completed migrations.
  • npx kysely seed:run - Run seed files.
  • npx kysely seed:make - Create a new seed file.
  • npx kysely migrate:up - Run the next migration that has not yet been run.
  • npx kysely migrate - Migrate the database schema.
  • npx kysely seed - Populate your database with test or seed data independent of your migration files

About

Opinionated project template for a modern Node.js/TypeScript apps with native ESM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published