Skip to content

jhabaa/mssp_application

Repository files navigation

Maison de la Santé Saint-Paul (mssp_application)

Last Commit

SonarQube Cloud

.NET Lines of Code Bugs Duplicated Lines (%) Code Smells Technical Debt Security Rating Reliability Rating

A web application for the Maison de la Santé Saint-Paul, a community health center in Yaoundé, Cameroon. The app provides information about the clinic, its activities, and allows for dynamic display of news and activities from a MongoDB database.

Features

  • Modern Blazor-based web UI
  • Dynamic activities section loaded from MongoDB
  • Responsive layout with custom navigation and footer
  • Integration with external news APIs
  • Docker support for easy deployment

Project Structure

  • Components/ - Blazor components (pages, layouts, navigation, etc.)
  • Models/ - C# models and MongoDB connection logic
  • wwwroot/ - Static files (CSS, JS, images)
  • Program.cs - Application entry point and configuration
  • Dockerfile - Containerization setup

Getting Started

Prerequisites

Configuration

Set the following environment variables or add them to your appsettings.Development.json:

  • MONGODB_PASSWORD - Password for the MongoDB user
  • MONGODB_NAME - Name of the MongoDB database

Example for appsettings.Development.json:

{
  "MONGODB_PASSWORD": "your_password",
  "MONGODB_NAME": "your_db_name"
}

Running Locally

1. Restore dependanceies:

dotnet restore

2. Build and run the application

dotnet run

3. Open your browser at: http://localhost:5010

Using Docker

Build and run the container

docker build -t mssp_application .
docker run -p 5010:5010 -e MONGODB_PASSWORD=your_password -e MONGODB_NAME=your_db_name mssp_application

MongoDB Integration

The app connects to MongoDB using the MongoConnection service. Activities are loaded from the Activities collection and displayed in the UI.

Customization

  • Update content and images in the Components/Pages and wwwroot/images folders.
  • Modify styles in wwwroot/app.css or component-specific CSS files.

License

The project is licensed under the MIT License.

About

ASP.NET Core , Razor Pages website for Maison de la santé

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages