sanjar-notes / backend

Backend web development fundamentals
0 stars 0 forks source link

Express.js for routing in nodejs apps #4

Open sanjarcode opened 2 years ago

sanjarcode commented 2 years ago

Express full tutorial - https://youtu.be/SccSCuHhOw0

Middlewares in Express - https://youtu.be/lY6icfhap2o

These videos are exhaustive.

sanjarcode commented 2 years ago

I watched the first video, and it was really encouraging. I can now make full stack web apps, at least using the 4 HTTP verbs and sending HTML pages.

sanjarcode commented 2 years ago

This can easily be connected to Mongoose to create a simple full-stack app. Piece of cake.

sanjarcode commented 2 years ago

I can of course use React too, by using Express only for sending JSON data. Have two problems:

  1. How to send files in JSON
  2. How to generate dynamic URLs for the whole full stack app, without hardcoding localhost://.
sanjarcode commented 2 years ago

Here's a small project to demo express.js https://github.com/exemplar-codes/express-mongoose-app