Preparation
Install Node.js
Note: This project uses node v20.11.0 and npmv 10.2.4.
Pick an editor
Pick your favorite editor or use Visual Studio Code.
Learn JavaScript basics
If you're not familiar with JavaScript, you may try this tutorial: "Quick Introduction to JavaScript."
What is REST api
See What is REST api?.
Express web framework
Express
is a fast, unopinionated, minimalist web framework for Node.js.
Here's a basic usage example:
const express = require('express')
const app = express()
const port = 3000
app.get('/', (req, res) => {
res.send('Hello World!')
})
app.listen(port, () => {
console.log(`Example app listening on port ${port}`)
})
Loading...
> code result goes here