This is a very simple express based nodejs server. The idea is to use this as a starting point for other projects. It doesn't do anything useful by itself. I was just tired of plumbing the basics every time I needed a new server project, which comes up more often than one might think. 😄
- Typescript
- Typings (Typescript definitions for existing npm modules)
- VS Code setup for auto compile on typescript
- Static pages
- GET controller
- POST controller
- ES6 imports and targets
- Clone the project
- CD into the repo directory
- Run:
typings install - Run:
npm install - Run:
tsc - To edit run:
code . - To start auto-compile just compile once with:
ctrl-shift-b - To run the server from the command line:
node Server.js - To run from the VS Code debugger:
F5from within VS Code
Make sure you have recent versions of all tools mentioned above (nodejs, npm, typescript, typings and VS Code).
See the LICENSE file for license rights and limitations (MIT).