---
title: "Discussion on \"Serve static assets using express\" | Hashnode"
description: "Discussion on \"Serve static assets using express\". Express has a built in functionality which can be used to serve static assets\nconst express = require(\"express\");\n\nconst app = express();\n\napp.use(express.static(\"public\"))\n\napp.listen(\"8082\", function(){\n    console.log(\"Server Started\");    \n});\nNo..."
url: "https://hashnode.com/posts/serve-static-assets-using-express/6103ecff805a765b088769b1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Serve static assets using express](https://moksha.hashnode.dev/serve-static-assets-using-express?utm_source=hashnode&utm_medium=feed)

Express has a built in functionality which can be used to serve static assets const express = require("express"); const app = express(); app.use(express.static("public")) app.listen("8082", function(){ console.log("Server Started"); }); No...

Jul 30, 2021 · 1 min read · moksha.hashnode.dev  
Read the article

-   [#express](https://hashnode.com/tag/express)
-   [#static](https://hashnode.com/tag/static)

## Written by

[Amol Khatri](https://hashnode.com/@amolkhatri)

@amolkhatri · Pune, India

  
[View profile](https://hashnode.com/@amolkhatri)

Engineer, Enthusiastic

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
