NodeJs1: Server request/responses with Postman, CORS, and JWT authentification
- npm Init //We start up a package.json file
//The endpoint sets where the request and response is gonna take place
const express = require('express');
const app = express();
app.get('/', (req, res) => {
res.send("Hello World!");
});
//listen() sets the localhost: endpoint
app.listen(3000, () => console.log("Server is up and running"))
//node server.js to start the server

Modify a JSON file with Postman POST data

CORS and JWT autentification


Implementing JWT registration to the server


Last updated