Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/zpg6/node-ts-template
- Owner: zpg6
- Created: 2020-10-17T15:55:05.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2020-10-17T16:41:34.000Z (almost 4 years ago)
- Last Synced: 2024-06-18T23:43:13.197Z (4 months ago)
- Language: TypeScript
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)