Let's start by creating the world's simplest Express server:
import express from "express";
const app = express();
app.get('/hello', (req, res...
For further actions, you may consider blocking this person and/or reporting abuse
Nice post! 😃
Tip: you can add this article about
Chain of responsability
pattern so people that want to learn more about it can find easilyrefactoring.guru/design-patterns/c...
Nice Work..!
Can you please tell how can i upload my expressjs API's with mongoDB to live server with my domain hosting?
Thank you for reading!
Where are you deploying your web server and mongoDB?
for now i have it in my PC with localhost:3000
i am also curious about which server is needed for these Api's
lets suppose i have a linux base Hosting and i want to upload these api's there? is it possible? how?
There are many ways you can deploy your server, and this comment is not the best place to answer your question. Probably the easiest approach is to copy your js files to the server and node run from there. For mongodb you can either start your own instance on the server, or find some free servers online which are great for dev purpose. Good luck!
thanks for help.
Very nice post! Than you for sharing!
Maybe, there is a little bug in the functions returned by
BodyParser
, on last example. They aren't callingnext()
inside them. Is this correct? 🤔Yep. Fixed. Good eye :D
Nice work! Contrate!!
offtopic, but why do people still use express when Koa is a thing? :D
Great post! Looking forward to more breakdowns!
This. is. brilliant!
Thanks for the simple and clear explanation on how the chaining works in express.
This is a treat of a post. Thank you ☺️
Good Post!
I'll refer your post my TIL blogging!