# NODE JS **Published by:** [coinvest](https://paragraph.com/@coinvest/) **Published on:** 2023-10-21 **URL:** https://paragraph.com/@coinvest/node-js ## Content NPM project initialization npm init -y Import Express const express = require("express"); Activate EJS view engine app.set('view engine', 'ejs'); app.set('views', path.join(__dirname, 'views')); Parse incoming request bodies app.use(express.urlencoded({ extended: true })); Serve static files (e.g. CSS files) app.use(express.static('public')); ## Publication Information - [coinvest](https://paragraph.com/@coinvest/): Publication homepage - [All Posts](https://paragraph.com/@coinvest/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@coinvest): Subscribe to updates ## Optional - [Collect as NFT](https://paragraph.com/@coinvest/node-js): Support the author by collecting this post - [View Collectors](https://paragraph.com/@coinvest/node-js/collectors): See who has collected this post