Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nicksp/typescript-node-starter

A minimal boilerplate for TypeScript and Node.js applications
https://github.com/nicksp/typescript-node-starter

boilerplate eslint husky-hooks jest jest-tests nodejs prettier starter-kit typescript

Last synced: 10 days ago
JSON representation

A minimal boilerplate for TypeScript and Node.js applications

Awesome Lists containing this project

README

        

# TypeScript Node Starter

A minimal boilerplate for Node.js web applications written in TypeScript 📦

Includes:

- [Typescript](https://www.typescriptlang.org/) - JavaScript that scales
- [TypeScript ESLint](https://typescript-eslint.io/docs/) - source code linter
- [Prettier](https://prettier.io/) - an opinionated code formatter

## Prerequisites

To build and run this app locally you will need a few things:

- Install [Node.js](https://nodejs.org/en/)
- Install [VS Code](https://code.visualstudio.com/)

## Getting started

- Clone the repository

```bash
git clone --depth=1 [email protected]:nicksp/typescript-node-starter.git
```

- Install dependencies

```bash
cd
npm install
```

- Generate production build and run the project

```bash
npm start
```

- Local development with cold reloading

```bash
npm run dev
```

- Linting

```bash
npm run lint
npm run lint:fix
```

- Code formatting

```bash
npm run pretty
npm run pretty:fix
```

- Testing

```bash
npm test
```

## Sources

#### Official TypeScript-Node-Starter:

https://github.com/Microsoft/TypeScript-Node-Starter

#### The definitive guide to TypeScript

https://basarat.gitbook.io/typescript/

## License

Copyright (c) Nick S. Khan. All rights reserved.
Licensed under the [MIT](LICENSE) License.