This repository is hosting the source code for the MarbleCollector project.
The MarbleCollector web app is hosted in Azure and can be tried out by using the following urls.
Component | Url | Description |
---|---|---|
Frontend | https://marblecollector.z1.web.core.windows.net | Will show react frontend |
Backend | https://marblecollector-api.azurewebsites.net | Will show swagger API doc |
Mind that this is a shared instance which is publicly available.
The following users are available in the app by default and are also seeded when running locally.
Family "Muster"
Username | Password | Role |
---|---|---|
peter | 123456 | Parent |
petra | 123456 | Parent |
lars | 123456 | Child |
lara | 123456 | Child |
lena | 123456 | Child |
This test scenario can be used to see most features of MarbleCollector in action:
- Open three independent browser instances (e.g. profiles)
- Login with one parent account and two children
- Follow the steps in the OneNote or in PDF
To run it locally you must first get the code
git checkout https://github.com/TashunkoWitko/MarbleCollector.git
Mind that if you use an OS other than Windows, you have to change the db connection string in the
api/MarbleCollectorApi/appsettings.Development.json
file to a path that your OS understands.
Option 1 (simple) Open visual studio solution and hit F5.
Option 2 (more complex)
- Install dotnet sdk and cli (.NET 5.0) -> https://dotnet.microsoft.com/download
- Run
dotnet dev-certs https --trust
so we can use https for local dev - Go to the root of the project and run
dotnet run --project .\api\MarbleCollectorApi\MarbleCollectorApi.csproj
- Ensure that the backend url configured in the client project matches the url where the api is listening
- Replace url present in file
.\client\.env.development
- with
https://localhost:5001
, which is the default path on our environment
- Replace url present in file
- Ready to test
Navigate to the client folder and run npm start
.
- Creation of ASP.NET Web API default project by using the visual studio project creation wizard.
- Creation of react project by using the official react script
npx create-react-app marblecollector-client --template typescript
For students the student promotion may be used: https://azure.microsoft.com/en-us/free/students The following resources were created within the Subscription and they can be accessed if your BFH account is granted permissions.
Resource Type | Name | Url |
---|---|---|
Resource Group | marblecollector | Link |
App Service Plan | marblecollector-plan | Link |
App Service | marblecollector-api | Link |
Storage Account | marblecollector | Link |
According to the documentation https://docs.microsoft.com/en-us/azure/devops/pipelines/create-first-pipeline the following steps were executed:
- Login to Azure DevOps https://dev.azure.com with BFH Account
- Create a new private project
MarbleCollector
- Navigate to pipeline and create new
- Setup pipeline for .NET
- Setup pipeline for React
- Add Azure Pipeline batch to readme
- Grant permissions in Github Repo
- Grant permissions in Azure Portal
- Grant permissions in Azure DevOps