- Date: Dec 10, 2022
- Assignment: Final Sprint (Default Project)
- Course Name: Algorithms and Data Processing
- Written By: David Turner
- Run npm init : this creates a basic package.json file
- Run npm install express
- Run npm install uuid
- Run npm install dotenv --save
- Run npm install ejs
- Run npm i mongodb
- Run sudo npm install -g typescript
- Run npm i --save-dev nodemon : installs nodemon to automatically refresh terminal while coding, check package.json to see the "dependency" section
- Inside package.json after "main" create "scripts": if it does not already exist, the following can be copied and pasted into package.json "scripts": { "devStart": "nodemon express.js" },
and you should see this structure
"main": "index.js", "scripts": { "devStart": "nodemon index.js" }, "author": "David Turner",
if scripts already exists do the following, NOTE a comma has to seperate the 2
"scripts": { "test": "echo "Error: no test specified" && exit 1", "devStart": "nodemon index.js"
}, 4. Then run the command npm run devStart
-
Added note for this you have to install, npm install method-override and npm install mongoose, seperately after npm install -y
-
Install npm install uuid (Universally Unique Identifiers)
-
Install npm i date-fns
-
Install npm install bootstrap, for css
-
Install npm install --save-dev jest