Building a Hospital Management System for our course project using PostgreSQL, Node.js, Express.js, EJS, and more.
📁 Only the
backendfolder contains the files necessary to run the project. All other files outside this folder are not required.
Follow the steps below to set up and run the project locally:
-
Clone the Repository
git clone https://github.com/yourusername/Hospital_Management_System.git
-
Navigate to the Backend Directory
cd Hospital_Management_System/backend -
Set Up Environment Variables
Create a
.envfile in thebackenddirectory and add the following:DB_USER=yourdbuser DB_HOST=localhost DB_NAME=databasename DB_PASSWORD=yourpassword DB_PORT=portno
DB_USER: Your PostgreSQL usernameDB_HOST: TypicallylocalhostDB_NAME: The name of your databaseDB_PASSWORD: Your PostgreSQL passwordDB_PORT: Default is usually5432
-
Install Dependencies
Run the following command to install all Node.js dependencies:
npm install
-
Start the Server
Run the server using
nodemon:nodemon index.js
If
nodemonis not installed globally, you can install it with:npm install -g nodemon
You can also install it locally instead of locally by removing the -g flag from above:
Hospital_Management_System/
├── backend/ # Backend logic (Express.js, PostgreSQL)
│ ├── public/ # Static files (CSS, JS)
│ ├── views/ # EJS templates for frontend rendering
│ ├── .env # Environment variables file
│ ├── index.js # Entry point of the backend server
│
├── README.md # Root project documentation
Create a pull request with detailed explanation of the feature and it's use we will review it at our earliest and get back to you. Also you can check the issues raised and work upon them and raise a pull request linked with the issue.