The Exit Survey Administration Tool will assist BC Stats in administering the BCPS Exit Survey.
- Ensure the .NET Core SDK 3.1 is installed.
- Ensure the .NET Core HTTPS development certificate is trusted.
- Check out the code from this repository.
- From the root project directory, run
dotnet ef database update. This will run the migrations and set up your development database. - On the command line / terminal, from the
ClientAppdirectory (in the root project directory), runyarn install. - Open the checked-out code in Visual Studio Code.
- Add the required sample documents (see below).
- Update the connection string to your local MS SQL Server instance in
appsettings.Development.json, along the following lines:
"ConnectionStrings": {
"ExitSurveyAdmin": "Server=127.0.0.1,1433;Database=ExitSurveyAdmin;User Id=sa;Password=Y0urP4ssw0rd"
}
- While in Visual Studio Code, press CTRL + F5 to launch the project.
The following sample documents should be placed in the /SampleInput folder, and can be obtained from the project team.
PSA-CSV-Sample.csvCallWeb-Sample.csv
This command will quickly drop the database, delete migrations, create an initial migration, and update the database.
dotnet ef database drop --force;rm -rf Migrations/*.cs;dotnet ef migrations add InitialCreate;dotnet ef database update
Copyright 2019 Province of British Columbia
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.