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.
- restify Used for Web API hosting.
- restify-cors An actually working middleware for handling cors in restify.
- SequelizeJS Used to provide an ORM accessing the PostgreSQL database.
- ts-node Used to run the TypeScript API directly from the npm scripts.