Pirple restful api lesson
Simple API built folowing pirple the-nodejs-master-class
In the terminal, cd to the project's folder and run the following command
// defaut environment
node index.js
// or choose environment
NODE_ENV=production node index.js
The next message will appear : ‘The server is listening on port 3000’
To send a request, use ports 3000, and 3001.
happy coding