Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/zpg6/node-ts-template

An empty Node Typescript Server to spin an instance up a bit faster.
https://github.com/zpg6/node-ts-template

Last synced: 1 day ago
JSON representation

An empty Node Typescript Server to spin an instance up a bit faster.

Awesome Lists containing this project

README

        

# node-ts-template

Just an empty server to spin up Node.js a bit faster.
I prefer Typescript when feasible, so yeah... it's Typescript.

## Typescript

You can install TypeScript via `npm`

```
npm install -g typescript
```

Then run the compiler via `tsc`

```
npx tsc
```

## Getting Started

Get the files and the dependencies with two easy commands:

```
git clone https://github.com/zpg6/node-ts-template.git
npm install
```

## Develop

This will re-compile and re-run the server when you change a file in the `src` directory.

```
npm run dev
```

## Run

This will compile and run the server, but not re-compile when files are saved.

```
npm start
```

# What's Included

```
Generate a UUID (shows it's reloading)
http://localhost:9000/

Serve a static file (checks permissions)
http://localhost:9000/running
```

![](http://zachgrimaldi.com/node-ts-template-demo.png)