steps:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
)brew install git
)brew install node
brew cask install atom
cd ~
, mkdir Development
, cd Development
to get into your Development foldergit clone [THE_URL_YOU_COPIED]
will create a new folder with the contents of your repistorycd [FOLDER_NAME]
gets you into your folder and atom .
opens it up in Atomnpx express-generator . --view=ejs
initializes your express project. npm i
and the npm start
gets the server started.npm i nodemon
and then adding"devstart": "nodemon ./bin/www"
to your package.json
and then npm run devstart
in terminal will start up your server just like npm start
, but nodemon
will automatically restart the server every time you make a change, which will be more convenient for you./bin/www
points to /app.js
which points to /routes/index.js
which receives requests from users and sends them back html by combining data (in the form of an object) and an ejs
view.