Basic NodeJS+ExpressJS API template.
src | ||
.gitignore | ||
package-lock.json | ||
package.json | ||
README.md | ||
tsconfig.json |
Basic API server (Node.js + Express.js and TypeScript)
Abstract
A basic functional template for creating an API server using Node.js + Express.js and TypeScript.
Test
The template is functional and you can test it using HTTPie, curl or Postman.
Start the API server
npm run dev
HTTPie
http localhost:3000/ => returns "Main page loaded" http localhost:3000/data => returns
...
...