Slides for this talk are on SpeakerDeck.
Very simple sample for Node.js Web API bootstrapping with restify using TypeScript.
Run npm i
or yarn
to install all dependencies. Then run npm start
to start.
Routes can be found in the controllers, as well as the needed parameters.
This sample contains no relationships between models. If you are interest in this, please take a look here: basta-spring-2017-nodejs-typescript-demo
- restify Used for Web API hosting.
- SequelizeJS Used to provide an ORM accessing the PostgreSQL database.
- ts-node Used to run the TypeScript API directly from the npm scripts.