Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8093699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:33:26+00:00 2026-06-05T20:33:26+00:00

I have just started studying node.js and express, the documentation of express on the

  • 0

I have just started studying node.js and express, the documentation of express on the home page is just too simple for me as a beginner.

for example,

app.configure('development', function(){
    app.use(express.static(__dirname + '/public'));
    ...
});

It may seems very obvious to you, but I just wonder what express.static mean? I can’t find an answer by searching Google.

This is just one example that I can’t understand the code.

So is there any better documentation of express for the absolute beginner?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T20:33:27+00:00Added an answer on June 5, 2026 at 8:33 pm

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just started studying JOGL and there is one problem. Below is simple
I have just started using RSpec and I copied the very simple test on
I have just started trying to build my first wp7 app, and I am
I have just started connecting android app with php My file works very fine
I have just started to read about ORMLite so I am still a beginner.
I have just started having a go at developing a small KDE app as
I have just started studying Python . I am referring to the tutorials at
I have just started studying Android and I am still lost. I would just
I have just started studying Android, I have limited java knowledge but am semi
I have just started studying Objective - C..and I encountered a problem which I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.