Developing on MacOs¶
Following instructions are for Risk solution but should work with other .Net backend projects as well
- Install PowerShell for MacOs
- Start PowerShell and use it to run rest of CLI commands
- Install xcode tools that are required by most of the development tools including git.
xcode-select --install
- Install Majority's git workflow tools.
Install-Module -Name posh-git-workflow
Getting sources¶
- login to Azure DevOps
- In the portal navigate to risk-backend repository
- In portal UI: create your own fork for development if don't have one already
- Clone your fork
git clone https://dev.azure.com/MAJORITY/Risk/_git/risk-backend.****your*fork****
- Add remote upstream to your local repository
cd risk-backend.****your*fork****
git remote add upstream https://dev.azure.com/MAJORITY/Risk/_git/risk-backend
If everything was done correctly following command will execute w/o problems:
Sync-GitFork
Building solution¶
-
See the Rider-ide-setup.md
-
Open Risk.sln in Rider
- Build solution
Databases setup¶
- Install Docker for MacOs
- Setup MongoDB container
docker run -d -p 27017-27019:27017-27019 --name mongodb mongo:3.6.0
- Setup Sql Server container
docker pull mcr.microsoft.com/mssql/server
docker run --name "sql-server" -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=L0f0t3n!" -p 1433:1433 -d
Ensure access to AWS¶
- Follow instruction from this page