This project is a web application built using ASP.NET Core with Razor Pages. It runs inside a Docker container and interfaces with an API that connects to a NoSQL MongoDB database, also running in Docker containers. The application is configured for automatic deployment to Azure but can be configured to run in other environments.
- WebApp Container: Hosts the ASP.NET Core web application with Razor Pages.
- API Container: Hosts the API that the web application communicates with.
- MongoDB Container: Hosts the NoSQL MongoDB database for data storage.
- ASP.NET Core with Razor Pages: Provides the web interface.
- Dockerized Deployment: Ensures consistent environments for running the application.
- NoSQL MongoDB: Efficiently stores and manages data.
- Auto-deployment to Azure: Facilitates continuous integration and delivery.
- Docker
- Azure account (for deployment)
- .NET Core SDK
-
Clone the repository:
git clone https://github.com/your-repo/your-project.git cd your-project
-
Build Docker Images:
docker-compose build
-
Run Docker Containers:
docker-compose up
-
Adjust the API and Mongo Addresses: Located in the API.cs and appsettings.json files
-
Access the WebApp: Open your browser and go to http://localhost:8080
The application is set up for automatic deployment to Azure. You can use the following steps to configure Azure deployment:
-
Deploy to Azure: The project uses GitHub Actions for CI/CD. Ensure your repository is connected to your Azure account and the pipeline is configured correctly.
-
Access the Deployed WebApp: An example web application is available at https://waqqlyjb02.azurewebsites.net/
To run the application in environments other than Azure, you may need to adjust the configuration settings:
- API Connection String: Update the API connection string in the
appsettings.json
file. - MongoDB Connection String: Update the MongoDB connection string in the
appsettings.json
file.