This repository is a starter for Node application using Typescript. You have :
- a project with Node and TypeScript
- linting with TSLint
We assume that you're already using Node.js with npm (or yarn). This project has been written using :
- node
^10.3.0
- yarn
^1.7.0
After confirming that your environment meets the above requirements, you can create a new project :
git clone https://github.com/aplt/node-express-typescript-starter <my-project-name>
Then, go in the created directory
cd <my-project-name>
When that's done, you must install the project dependencies.
yarn install
Running the project is as simple, run
yarn start
Running using yarn dev
is not recommended for production environment.
To make a production build, run
yarn build
This will create an optimized production build in ./dist
To run linter, use:
npm run lint