The SAP gamification web app.
- .NET SDK version 8.0
- Docker
-
Install Docker
- If you're using a Mac computer with an M series processor, you will need to enable Rosetta 2 mode in the Docker settings.
-
Clone the repository
-
cd
into the repository root directory -
Setup the database container by running the setup script
./database.sh setup
-
Install project dependencies
dotnet restore
-
Run database migrations
dotnet dotnet-ef database update
-
cd
to the repository root directory -
Start the local development database (if not already running)
./database.sh start
-
Start the ASP.NET application
dotnet watch run --environment Development --project Tulip
CAUTION: running the
watch
command without specifying theDevelopment
environment will cause the application to connect to the production database.
NOTE: Any time the .Net data models change, the local database will need to be updated to reflect the new schema. To do this, run:
dotnet dotnet-ef database update
-
Use Cntl-C to stop the development server (this command may be different depending on operating system/terminal).
-
Stop the local database
./database.sh stop
When this application is deployed to production, it should be started
with the Production
environment. This can be achieved with the
command dotnet run --environment Production
.
Some systems may do this automatically. The default environment is
Production
.