A simple express server for API
- Create a empty direcotry
- Run the following scripts to initiaze npm project
npm init -y
- Install dependencies
yarn add express yarn add -D nodemon
- Create a index.js file
import express from "express"; const app = express(); app.listen(8080, function(){ console.log("App running on http://localhost:8000") })
- Serve
- For production
node index.js
- For development
nodemon
- For production
- Postman
- Thunderclient (VSCode)