This project was completed as an interview assignment for Excel Technologies Ltd.
- PostgreSQL: Please ensure that PostgreSQL is installed and running on
localhost:5432. - Database and User Setup:
- Create a PostgreSQL user named
hospitalwith the password12345678. - Create a database named
hospitaldb.
- Create a PostgreSQL user named
-
Clone the Repository:
git clone https://github.com/progressive-galib/HospitalAPI cd HospitalAPI/HospitalAPI dotnet run --configuration Debug -
Set Up the Database: Ensure PostgreSQL is running, then create the necessary user and database: (how I did it)
sudo apt update && sudo apt install postgresql postgresql-contrib #if you dont have postgres installed. sudo -i -u postgres psql
then in psql shell,
CREATE USER hospital WITH PASSWORD '12345678'; CREATE DATABASE hospitaldb; GRANT ALL PRIVILEGES ON DATABASE hospitaldb TO hospital;
-
Run the Project in Debug Mode: Follow the instructions provided in the project to start the application in debug mode. This will allow you to access the API.
-
Accessing the API: The API can be accessed via Swagger for easy testing and documentation. The Swagger UI will be available at
http://localhost:[your-port]/swagger.
- The API was tested using Postman.
- The database operations were verified using pgAdmin.
For more details, please refer to the documentation and comments within the code.
Thank you for the opportunity to work on this assignment.
Mahfuzullah Galib