An ASP.NET API microservice using Code First Entity Framework.
Project needs to have Entity Framework installed through Visual Studios Nuget Manager.
Visual Studio 2017
After clone the repository locally, Import the project into Visual Studio. Be sure that you are not working on the master branch locally.
This project essentially uses SemVer for versioning, with the PATCH number always assumed to be zero unless noted otherwise. For the versions available, see the tags on this repository. Releases will only be published for MAJOR versions.
No code development should be done on the "master" branch. Instead, the "develop" branch should be used to branch off of for various features/issues. Features, fixes, and issues should all be in the GitHub Issues section for the repository before development work begins. Once a feature/fix/issue is done, all commits need to be squashed into a single commit. A Pull Request should then be made for that commit into the "master" branch. The pull request should contain keywords to close the Issue that was being corrected. If the commit is deployed, it should be tagged as the latest version in git, as well as updated in the pom.xml and application.properties files.
The Project section of the repository tracks the work planned for each major Release. Releases should consist of between 10 - 20 tags. Hot fixes should still follow the protocol for being done in "develop" and squashed into "master".
Uses AxoCover plugin to get Unit test coverage reports.
The following setup is done in Visual Studio 2019. Deploying the application with a database and server, for extended use on F tier under a Pay-as-you-Go subscription, will cost ~$15 a month. It is assumed whoever is going through these steps already has a Azure account connected to their Visual Studio.
- Right-click the AugmentedAspnetBackend project and select "Publish"
- For Azure App Serivce, select "Create New", then select and press "Create Profile" (you'll be ask to verify your credentials for Azure at this point).
- Choose a Location near your region, and select Free tier for hosting plan. Also a good practice to have name for; "App Name", "Resource Group", and "Hosting Plan" should all have the same prefix. Example; "App Name": "MyAppName", "Resource Group": "MyAppNameResourceGroup", "Hosting Plan": "MyAppNameHostingPlan".
- Under "Explore additional Azure services", select "Create a SQL Database"
- For SQL Server, press "New..."
- Set the Admin username and password.
- Set the connection string name to match the connection string in the WorkoutContext.cs class.
- Press "Create". This may take several minutes.
- After the resources are created, a success message should appear in the IDE, with a button to "Publish".
- Press "Publish". The first deploy may also take several minutes.
- Entity Framework - Used generating Code First Database
- Visual Studio - IDE for developing code
- Azure - Cloud deployment
- Postman - Used for API HTTP Request testing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
- Cameron Dziurgot - Initial work - cameronDz
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
- PurpleBooth templates for README and CONTRIBUTING files.