Sample SaaS Application written in .NET
Welcome to the Trident AI Sample SaaS Application! This application is written in .NET and serves as a demonstration of a Software-as-a-Service (SaaS) solution. It's primary focus is to demonstrate how to build and deploy to AKS and AzureSQL using GitHub Actions and Octopus Deploy.
- Very simple application, has a web front end and a database backend
- Dockerfile is already created and supports building both x64 and ARM containers
- The deployment process supports a common feature branch workflow
To install and run the Trident AI Sample SaaS Application, follow these steps:
- Clone the repository:
git clone https://github.com/OctopusSolutionsEngineering/Trident.git
- Open the project in your preferred .NET IDE.
- You can run the application locally, or as a container.
- You will need to create the database.
- You can do this by running
/src/Trident.Database.DbUp
and providing a connection string in the/src/Trident.Database.DbUp/properties/launchSettings.json
file. - OR, you can go to
/src/Trident.Database.DbUp/DeploymentScripts
and running them all in order
- You can do this by running
- Once the database is created, you'll need to set the connection string in the environment variable
TRIDENT_CONNECTION_STRING
.
If you want to fork this repository, please feel free to do so!
Once you fork this application you'll need to set the following repository secrets for the build.yml to work correctly.
DOCKERHUB_PAT
DOCKERHUB_USERNAME
OCTOPUSSERVERAPIKEY
OCTOPUS_SERVER_URL
You'll need to set the following repo variables for the build.yml to work correctly.
DOCKER_HUB_REPO
OCTOPUS_PROJECT_NAME
OCTOPUS_SPACE
The build.yml
file expects you to have two channels in your project in Octopus Deploy.
- Default: Deploys to the
Development
environment only for feature branch work - Release: Deploys to
Test
->Staging
->Production
. This is what the main branch uses.
We welcome contributions to the Trident AI Sample SaaS Application! If you would like to contribute, please follow these guidelines:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your forked repository.
- Submit a pull request.
The Trident Sample SaaS Application is licensed under the MIT License. See the LICENSE file for more information.
If you have any questions or feedback, please create an issue.