Team 2's ecommerce site for CSC 307
cd frontend && npm install
mkdir C:\data\db
cd backend && npm install
cd frontend && npm start
"C:\Program Files\MongoDB\Server\8.0\bin\mongod.exe
cd backend && npm run dev
npx eslint . --fix
) and Prettier for formatting (npm run format
).npx eslint . --fix
and npm run format
every time.For VSCode:
Under File > Preferences> Settings > Open Settings (JSON) icon (in the top right, looks like a document with an arrow)
,
paste the following in the file:
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
Open Settings (JSON)
. Here was what I needed to
do:
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}