- Set up a SQL express server
- Open the repository in Visual Studio Code.
- Click on the Run and Debug menu on the right hand side.
- In the Run and Debug drop down menu select `Database.Migrator (build and run locally)
- If it doesn't work, check that your SQL express server has the same name as is assumed in this connection string
To get started quickly, a template settings file is provided for development.
In the ADPConfigurator/Web
directory, make a copy of the appsettings.Development.template.json
and save it as appsettings.Development.json
.
Do the same for ADPConfigurator/Api
.
You can make changes to it if needed as it's ignored by Git. By default, it assumes you're connecting to the SQL database on a LocalDB instance, but use whatever floats your boat.
At this stage, you should be able to F5
the solution.
The first time you log in to the app, a record is created in the [DI].[User]
table.
However, you can't access all the management pages if you're not an admin.
You can run the following SQL query to bump your user to being an admin:
UPDATE
[DI].[USER]
SET
[AdminIndicator] = 1
WHERE
[EmailAddress] = '<email-address-of-the-account-you-use>'