Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

HospitalAPI

This project was completed as an interview assignment for Excel Technologies Ltd.

Prerequisites

  • PostgreSQL: Please ensure that PostgreSQL is installed and running on localhost:5432.
  • Database and User Setup:
    • Create a PostgreSQL user named hospital with the password 12345678.
    • Create a database named hospitaldb.

Running the Project

  1. Clone the Repository:

    git clone https://github.com/progressive-galib/HospitalAPI
    cd HospitalAPI/HospitalAPI
    dotnet run --configuration Debug
    
  2. 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;
  3. 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.

  4. 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.

Testing

  • The API was tested using Postman.
  • The database operations were verified using pgAdmin.

Additional Information

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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages