Clone the Project . Execute npm install on the same path of your root directory of the downloaded Project.
Create a .env file in the root directory and add the following enviroment variable .
PORT = 3000
Dependencies we used to make project work .
"dependencies": {
"dotenv": "^16.0.3", //dotenv it helps to create the enviroment variable
"ejs": "^3.1.8", //EJS simply stands for Embedded Javascript, let us generate HTML with plain javascript
"express": "^4.18.2", // Lets us create a web application framework.
"mongoose": "^6.9.0", // It is ODM for for MongoDB
"nodemon": "^2.0.20", // let's server run automatically after every changes we done in server files.
"shortid": "^2.2.16" // Package to generate the shortId for our longId.
}
config
folder let us hide the Confidentail data using dotenv.
models
folder let create our database schema and database.
src
folder consist of our server file.
view
fodler consist of our .ejs file for frontend UI and styling .