The SAP gamification web app.
- .NET SDK version 8.0
-
Clone the repository
-
cdinto the repository root directory -
Install project dependencies
dotnet restore -
Setup the development database using the setup tool
dotnet run --project Tulip.CLI db-setup Tulip/Tulip.db -
(Optional) Log in to the admin panel and enable an AI Chat system. You can either enter a ChatGPT API key, or generate and upload a LLaMa 2 model (see ai model generation documentation).
-
cdto the repository root directory -
Start the ASP.NET application
dotnet watch run --environment Development --project Tulip
CAUTION: running the
watchcommand without specifying theDevelopmentenvironment will cause the application to connect to the production database.
- Use Cntl-C to stop the development server (this command may be different depending on operating system/terminal).
-
Generate new database migrations (if the database was changed).
dotnet ef migrations add [migration name] --project Tulip -- --environment Production -
Generate a migration script (if the database was changed). This will create a file called
db-migration.sql.dotnet ef migrations script --idempotent --project Tulip -o db-migration.sql -- --environment Production -
Create the new application executable. This will create a
publishfolder containing the executable located attulip/Tulip/bin/Release/net8.0/publish/dotnet publish -
Stop the production server.
-
Remove the old application code.
-
Upload the new application code to the server (the files inside the
publishfolder). -
Run the migration SQL script on the database (if the database was changed).
-
Run the new application executable.
-
Verify the application is running properly.