- The source code is a backend server created using node and express js.
- The database used is MongoDb and the ORM used is Mongoose
- All requests are made to this server through an API which can be accessed at http://localhost:4000
- Clone or download the repository from https://github.com/Starnoh254/Leave-App-Backend.git
- Navigate into the project folder i.e cd Leave-App-Backend
- Run
npm install
in your terminal to install all dependencies - Create a
.env
file in the root directory of the project, add the following variables (replace with your own values):
Note that you need NodeJS installed on your machine for this step. - Once installation is complete, start the application by running
node index.js
in your terminal
Make sure that MongoDB service is running before starting the application. - Open Postman (or any HTTP client of your choice) and make request to
http://localhost:4000/
You should see "Server is up and listening on port 4000!" as the response if everything works correctly.