- Create new repo in
Github
with.gitignore
file
npm init -y
Generate an empty npm projectnpm install express ejs mongoose
Install Express Ejs and MongoDB as a dependancy of your projectnpm i --save-dev nodemon
Install package as a development dependencynpm run dev
Update scripts in package.json with"dev:npm nodemon [name].js"
- Create new repo and follow steps on command line in Terminal
- Install
npm install -g ejs-lint
so Linter/Syntax Checker can run through project - Run
ejslint .
to check for errors wheninclude()
methods are used in files
- Install
npm i method-override
in order to use DELETE as method within form
- Install
npm install cypress -D
ornpm install cypress --save-dev
to Install and save - Open Cypress
./node_modul es/.bin/cypress open
- Run Cypress in terminal
npx cypress run
- Run Cypress in browers
npm run cypress:open