AI can only take you so far. 🌟 Start with core skills in JavaScript, HTML, CSS, or Python. πŸš€

Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! πŸš€start learning today!

🌟 Dreaming of a bright future? πŸŽ“ Ask about the Treehouse Scholarship program! πŸš€

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Ron Gootman
    Ron Gootman
    24,409 Points

    Unable to load the css style on to the page

    Posted June 17, 2017 1:27pm by Ron Gootman
    Ron Gootman
    24,409 Points
    • JavaScript
    • Express Basics (2015)
    • Serving Static Files in Express
    • Add Static to the Layout Template

    0 Answers

  • Kathryn Notson
    Kathryn Notson
    25,941 Points

    Express Basics > Serving Static Files in Express > Review Static Middleware Challenge

    Posted December 22, 2016 7:55pm by Kathryn Notson
    Kathryn Notson
    25,941 Points
    • JavaScript
    • Express Basics (2015)
    • Serving Static Files in Express
    • Review Static Middleware

    1 Answer

  • Ben Myhre
    Ben Myhre
    28,726 Points

    Can the course change Jade to Pug?

    Posted December 10, 2016 2:59pm by Ben Myhre
    Ben Myhre
    28,726 Points
    • JavaScript
    • Express Basics (2015)
    • Serving Static Files in Express
    • Setting Up the Express Static Server in Development

    0 Answers

  • fredyrosales
    fredyrosales
    10,572 Points

    Switching Branches

    Posted October 24, 2016 12:32am by fredyrosales
    fredyrosales
    10,572 Points
    • JavaScript
    • Express Basics (2015)
    • Serving Static Files in Express
    • Setting Up the Express Static Server in Development

    0 Answers

  • evanritscher
    evanritscher
    10,209 Points

    Why do we have to use express.static and not app.static?

    Posted September 11, 2016 8:54pm by evanritscher
    evanritscher
    10,209 Points
    • JavaScript
    • Express Basics (2015)
    • Serving Static Files in Express
    • Setting Up the Express Static Server in Development

    1 Answer

  • Gustavo Buarque
    Gustavo Buarque
    7,113 Points

    express.static is not working at localserver

    Posted September 8, 2016 10:06pm by Gustavo Buarque
    Gustavo Buarque
    7,113 Points
    • JavaScript
    • Express Basics (2015)
    • Serving Static Files in Express
    • Setting Up the Express Static Server in Development

    3 Answers

  • Jack Hegarty
    Jack Hegarty
    9,381 Points

    Created new git clone. When I start the node server I receive an error and it appears my old server is still running???

    Posted March 8, 2016 5:19pm by Jack Hegarty
    Jack Hegarty
    9,381 Points
    • JavaScript
    • Express Basics (2015)
    • Serving Static Files in Express
    • Add Static to the Layout Template

    1 Answer

  • Allison Walker
    Allison Walker
    17,137 Points

    Why are we using '/static' - as opposed to '/public'?

    Posted December 10, 2015 3:07pm by Allison Walker
    Allison Walker
    17,137 Points
    • JavaScript
    • Express Basics (2015)
    • Serving Static Files in Express
    • Setting Up the Express Static Server in Development

    3 Answers

  • Brigette Eckert
    Brigette Eckert
    16,957 Points

    Git clone missing branches?

    Posted November 2, 2015 9:19pm by Brigette Eckert
    Brigette Eckert
    16,957 Points
    • JavaScript
    • Express Basics (2015)
    • Serving Static Files in Express
    • Setting Up the Express Static Server in Development

    3 Answers

  • Cezar Mart
    Cezar Mart
    8,401 Points

    I have no clue what Huston is doing.

    Posted October 30, 2015 1:46am by Cezar Mart
    Cezar Mart
    8,401 Points
    • JavaScript
    • Express Basics (2015)
    • Serving Static Files in Express
    • Setting Up the Express Static Server in Development

    4 Answers

  • George Akinian
    George Akinian
    17,615 Points

    '/static/css/creative.css' i get that static is established prefix but why is public folder missing from this path?

    Posted October 26, 2015 8:07pm by George Akinian
    George Akinian
    17,615 Points
    • JavaScript
    • Express Basics (2015)
    • Serving Static Files in Express
    • Add Static to the Layout Template

    3 Answers

  • Tim Rohweder
    Tim Rohweder
    25,527 Points

    Confused why we use __dirname

    Posted October 5, 2015 6:32pm by Tim Rohweder
    Tim Rohweder
    25,527 Points
    • JavaScript
    • Express Basics (2015)
    • Serving Static Files in Express
    • Setting Up the Express Static Server in Development

    4 Answers

  • Jeremy Woodbridge
    Jeremy Woodbridge
    25,278 Points

    Add Express’s static server middleware as a second argument to the app.use(β€˜/static’) function, with the path to the pub

    Posted September 21, 2015 3:01pm by Jeremy Woodbridge
    Jeremy Woodbridge
    25,278 Points
    • JavaScript
    • Express Basics (2015)
    • Serving Static Files in Express
    • Review Static Middleware

    3 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.