https://github.com/devianllert/ts-node-boilerplate
Boilerplate for Node.js projects with TypeScript.
https://github.com/devianllert/ts-node-boilerplate
Last synced: 11 days ago
JSON representation
Boilerplate for Node.js projects with TypeScript.
- Host: GitHub
- URL: https://github.com/devianllert/ts-node-boilerplate
- Owner: devianllert
- Created: 2019-06-30T19:40:59.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T21:53:21.000Z (over 3 years ago)
- Last Synced: 2025-09-15T01:28:50.315Z (9 months ago)
- Language: TypeScript
- Size: 1.69 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node.js Typescript Boilerplate

[](https://david-dm.org/devianllert/ts-node-boilerplate) [](https://david-dm.org/devianllert/ts-node-boilerplate?type=dev) [](https://github.com/devianllert/ts-node-boilerplate/issues)
## Quick start
1. Clone this repo using ```git clone https://github.com/devianllert/ts-node-boilerplate.git```
2. Move to the appropriate directory: ```cd ts-node-boilerplate```.
3. Run ```npm install``` to install dependencies.
4. Run ```npm run dev``` to see the example app at ```http://localhost:3000```.
## Documentation
### CLI Commands
#### Development
```bash
npm run dev
```
Starts the development server running on ```http://localhost:3000```
#### Building
```bash
npm run build
```
Preps your app for deployment (does not run tests). Optimizes and minifies all files, piping them to the dist folder.
#### Testing
```bash
npm run test
```
Tests your application with the unit tests specified in the ```**/*.{spec,test}.{js,ts}``` files throughout the application.
```bash
npm run test:watch
```
Tests your application in watch mode with the unit tests specified in the ```**/*.{spec,test}.{js,ts}``` files throughout the application.
#### Linting
```bash
npm run lint
```
Lints your JavaScript.
```bash
npm run lint:fix
```
Lints your code and tries to fix any errors it finds.
#### Docker
##### Build
```bash
docker build -t ts-node .
```
##### Run
```bash
docker run --rm -it -p 3000:3000 ts-node
```
## License
This project is licensed under the MIT license, Copyright (c) 2019 Ruslan Povolockii.
For more information see `LICENSE.md`.