- Clone the repository
- Run
yarn install - Create a
.envfile in the root of the project and add environment variables mentioned below - Run server by using:
yarn dev
You can also take reference from .env.example file
PORT- Port on which server will runMONGO_URI- MongoDB connection string
- We are using
ejsas our template engine so you can't use.htmlyou have to use.ejsextension - All the views are in
viewsfolder - All static files such as css, js, images are in
publicfolder. To use them in your views you can use/public/your-file-path