Skip to content
This repository was archived by the owner on Aug 2, 2023. It is now read-only.

Latest commit

 

History

History
64 lines (50 loc) · 1.24 KB

File metadata and controls

64 lines (50 loc) · 1.24 KB

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.