-
Create a new folder or directory for the application
-
cd
into that directory -
Enter
npm init
and press the ENTER key until you see your prompt again Ornpm init -y
-
Add the express package by:
yarn add express
(make sure that the prompt is in the project directory -- the directory for your node application) ornpm install express
- Other dependecies will be:
hbs
andwax-on
4b. To install yarn, you just type npm install -g yarn
-
Don't modify any files in the
node_modules
folder and also make sure it don't go up to .github -
Creating a
.gitignore
file -
Install node monitor so that we don't have to keep restarting our server. In the terminal, type in:
npm install -g nodemon
If using MacOS, you have to write sudo npm install -g nodemon
- In the terminal (after making sure that the project folder is correct), we will install
hbs
(handlebars) with
yarn add hbs
- Create a folder name
views
and that will store all our template files (view files)