A quick guide on how to setup Node.js development environment.
Previous versions of these install instructions had been tested with:
A quick guide on how to setup Node.js development environment.
Previous versions of these install instructions had been tested with:
| const express = require('express') | |
| const app = express() | |
| const path = require('path') | |
| const fetch = require('node-fetch') | |
| const PORT = process.env.PORT || 3000 | |
| app.get('/api/user', (req, res) => { | |
| res.json({ name: 'Richard' }); | |
| }); |