Basic NodeJS+ExpressJS API template.
Find a file
2023-12-23 22:17:09 -05:00
src api_srvr: Typing error fixed 2023-12-23 20:51:41 -05:00
.gitignore api_srvr: Initial commit 2023-12-23 11:25:57 -05:00
package-lock.json api_srvr: Initial commit 2023-12-23 11:25:57 -05:00
package.json api_srvr: Initial commit 2023-12-23 11:25:57 -05:00
README.md api-srvr: README update 2023-12-23 22:17:09 -05:00
tsconfig.json api_srvr: Initial commit 2023-12-23 11:25:57 -05:00

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

...

...