re: Designing a better architecture for a Node.js API VIEW POST

FULL DISCUSSION
 

Great article but The first image of "Create the server" heading Line no 5 is "app.use(bodyParser.json())" while it should be "server.use(bodyParser.json())"
because there is no variable with name "app".
Thanks

 

That is totally right Aashir, thank you very much for reporting that. I just fixed the post :)

code of conduct - report abuse