Skip to content

An Example of a Basic Server with Node.js, Express, and Pug Templates

Notifications You must be signed in to change notification settings

matthieuGravy/pug-express

Repository files navigation

Node server beginner

open source

express pug tailwind css

Usage Recommendations

Project Setup

npm install

Compile and Hot-Reload for Development

npm run start
install node on Ubuntu

Follow this order

sudo apt update
sudo apt upgrade
sudo apt install nodejs npm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
source ~/.bashrc
nvm ls-remote

(Choose the latest LTS version) nvm use v18.17.1

nvm use v[your choice]
node -v

This process ensures that you have Node.js and npm installed, and it also sets up NVM for managing Node.js versions, allowing you to choose and switch between different versions as needed. This is a recommended way to manage Node.js installations, even for local use, as it provides flexibility and version control.




Matthieu Gravy

linkedin

About

An Example of a Basic Server with Node.js, Express, and Pug Templates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published