$ npm install
-
Install
Prettier - Code formatter
extension -
Create file
.vscode/settings.json
{
"editor.formatOnSave": true,
"[javascript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[javascriptreact]":{ "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[typescript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[typescriptreact]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }
}
NODE_ENV=development
PORT=5000
DB_USER=
DB_PASSWORD=
DB_DATABASE=
DB_HOST=127.0.0.1
ACCESS_TOKEN_SECRET={random string}
# Start node console
$ node
# Use crypto library to accquire random bytes and convert it to a string
$ require("crypto").randomBytes(48).toString('hex')
$ npm run dev
├── client
│ ├── public
│ └── src
│ └── components
│ └── views
│ ├── LandingPage
│ ├── LoginPage
│ ├── NavBar
│ └── RegisterPage
└── server
├── config
├── controllers
├── database
├── middleware
├── models
└── routes