- Initialize Project
- Set Up Express Server
- Serve Static Files
- Handle 404 Errors
- Install and Set Up Tailwind CSS
- Style Your Website
7.01 - Create a new Node.js project using npm init --y
and install Express with npm install express
.
7.02 - Create an app.js
file, create an instance of Express, and set the app to listen on port 3000 by adding the necessary code to app.js
.
7.03 - Create a public
folder in the root directory, use express.static()
to serve files from this folder, and include the path
module to concatenate __dirname
with /public
.
7.04 - Update app.js
to serve a custom 404 message for non-existing pages.
7.05 - Install and Set Up Tailwind CSS.
7.06 - Style your website using Tailwind CSS according to the given Figma Prototype.