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.
- 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
Components/
- Blazor components (pages, layouts, navigation, etc.)Models/
- C# models and MongoDB connection logicwwwroot/
- Static files (CSS, JS, images)Program.cs
- Application entry point and configurationDockerfile
- Containerization setup
- .NET 8 SDK
- MongoDB Atlas or a MongoDB instance
- (Optional) Docker for containerized deployment
Set the following environment variables or add them to your appsettings.Development.json
:
MONGODB_PASSWORD
- Password for the MongoDB userMONGODB_NAME
- Name of the MongoDB database
Example for appsettings.Development.json
:
{
"MONGODB_PASSWORD": "your_password",
"MONGODB_NAME": "your_db_name"
}
dotnet restore
dotnet run
3. Open your browser at: http://localhost:5010
docker build -t mssp_application .
docker run -p 5010:5010 -e MONGODB_PASSWORD=your_password -e MONGODB_NAME=your_db_name mssp_application
The app connects to MongoDB using the MongoConnection
service. Activities are loaded from the Activities
collection and displayed in the UI.
- Update content and images in the
Components/Pages
andwwwroot/images
folders. - Modify styles in wwwroot/app.css or component-specific CSS files.
The project is licensed under the MIT License.