Sunday 27 October 2019

Asking about node application production and development

Hi! I am a beginner in Node.js, I would like to ask is there any tutorial from scratch (from zero) about managing for production release and development in one codebase?Let's say I have a project with simple API Service using Express and MongoDB;>const express = require('express');>const app = express();>const PORT = 3000;>app.get('/', (req, res) =>{ res.json({success: true, data: "It's work"});});>app.listen(PORT, ()=>{console.log(`API run at PORT ${PORT}`)});How to implement production and development from those codes?Any answer will be greatly appreciated since I am still learning this platform, thank you.*edit: formatting

Submitted October 27, 2019 at 09:08AM by geol88

No comments:

Post a Comment