Redid my express template from a while ago for newbies
W3schools is the GOAT for examples
I also recommend getting the Better Comments VS Code extension for this template
Note
Make sure you have:
An IDE, I preferably use VS Code
Git or Github Desktop (Windows and MacOS only afaik) installed
A terminal ready
Nodejs and npm installed
- Clone the repo
Using git:
git clone https://github.com/durpyneko/simple-express-template
Using Github Desktop: Docs
Or download the repo zip.
- Open your IDE of choice in the directory you cloned into. Github Desktop has a quick launch feature
- Open your terminal in the directory or use your IDE's built in terminal.
- Install dependencies by running ->
npm install
- Start the server by running ->
node index.js
- Open the default url:
http://127.0.0.1:4000
Remember: Google, Stackoverflow and w3schools is your friend