Skip to content

Starter Project for TypeScript, NodeJS and Express.

License

Notifications You must be signed in to change notification settings

samirpdl/ts-node-express

 
 

Repository files navigation

TypeScript NodeJS Starter Project

Starter Project for TypeScript, NodeJS and Express.

Installation

Clone the repository, install the dependencies and get started right away. Make sure you already have nodejs, npm and yarn installed in your system.

$ yarn

Configuration

Create a .env file for application specific environment variables and update it according to your database & env specific params.

$ cp .env.example .env

Migrations & Seeding

You'll need to run migrations to get your database ready.

# Run Migrations and seeds
$ yarn migrate

Local Development

Run the server locally using nodemon on typescript watch mode.

$ yarn start # or npm start

Production

First, build the application.

$ yarn build # or npm run build

Then, use pm2 to start the application as a service.

$ yarn service:start # or npm run service:start

Testing

Running all tests.

# Running all tests.
$ yarn test

# Running all tests in watch mode.
$ yarn test:watch

Running all API tests (Acceptance Tests).

$ yarn test:api

Running all Unit Tests.

$ yarn test:unit

License

Licensed under MIT License.

About

Starter Project for TypeScript, NodeJS and Express.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.6%
  • JavaScript 3.4%