Factsheet
Videos
Documentation for express.js
What is the best way to learn express.js?
node.js - Express documentation - Stack Overflow
Best Way to Learn Node.js & Express? Struggling with Documentation
Hello everyone,
Currently trying to learn express.js, I have quite a bit of knowledge in vanilla javascript but im trying to expand my knowledge to nodejs and some backend frameworks. Im having trouble finding good resources to learn express.
Here are my concerns with what I've seen:
- express js docs are kind of bland and hard to follow along
- udemy videos are filled with 15+ hours of content with mostly fluff
-pdf books online are mostly outdated
-youtube videos are thirty minutes and keep reiterating the same stuff ex setting up, routes, middleware .... they don't cover a lot of in-depth stuff just basics.
If anyone knows of any good learning resources that don't contain any of the annoyances above ^ please feel free to comment.
I agree that the Express documentation reads a bit more like a book than an API doc. In the case of express.static, this is a re-expored middleware from Connect (connect.static), which Express is built on. From the middleware section of the docs:
Typically with connect middleware you would require(βconnectβ) like so:
var connect = require('connect'); app.use(connect.logger()); app.use(connect.bodyParser());This is somewhat annoying, so express re-exports these middleware properties, however they are identical:
app.use(express.logger()); app.use(express.bodyParser());
You can see what middleware Connect exposes on their web site. In particular, check out the documentation for the static middleware.
express is the class and static is a member of that class. What express.static means is "use the static method of the express class", what the static method does is initialize a static file server to be served by your node.js server.
Iβve been trying to learn Node.js and Express, but I find that the official documentation sometimes lacks clear explanations or requires me to search for additional information on other websites. Iβm not very comfortable with learning directly from documentation, so Iβm looking for a more structured approach.
For those who have mastered Node.js and Express, how did you learn them? If you were to start over today, how would you go about it? Also, could you recommend some comprehensive courses that cover all the essential topics, including backend best practices, authentication (JWT), APIs, security, databases, and deployment?
Iβd appreciate recommendations that go beyond the basics and dive into advanced concepts as well.
Thanks in advance!
So, I am aware of swagger and jsdoc. Im wondering what the best way would be to document an Express API ? Swagger seems to be geared towards allowing interactivity through a web interface and something that is public facing. JSdoc seems to be a little closer to what I may be looking for since it seems to just generate a website locally.
Basically, I am looking for something that would be private and allow for private documentation for a back end API that's only used for interfacing with the front end.
Also, if i use lets say JSdoc, would I define the documentation in the routes file? Controller file? Model file?
Whats the industry standard way of doing this?
Im looking for suggestions on how to approach this. Any ideas? Thanks!