-
Please make sure you have dotnet, Node, and SQL Server installed on your device.
-
Add the SQL Server connection string in the "appsetting.json"
-
Open a terminal and direct to the Server folder, where the current directory should contain "Program.cs"
-
Execute
dotnet ef database update
-
[Optional] To add in mock data, execute
dotnet run seeddata
.- Note that this will clear all the existing data in the database
- If you do not want to clear the database, please comment out line 15-19 in "Seed.cs"
-
Add the .env file to the client folder, below is a example .env file
REACT_APP_SERVER_URL=https://localhost:8000
REACT_APP_COGNITO_USER_POOL_ID=us-east-1_zgpnQkiko
REACT_APP_COGNITO_CLIENT_ID=qr1el3uvai1mckplgqto6ps8g
REACT_APP_COGNITO_REGION=us-east-1
- Open a terminal and direct to the Server side folder, where the current directory should contain "Program.cs"
- Execute
dotnet run
- Open another terminal and direct to the client side folder, where the current directory should contain "package.json"
- Execute
npm start