-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Josiah Ross edited this page Nov 20, 2020
·
8 revisions
- Download Microsoft Sql Server Management Studio at https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-ver15
- Download the .NET SDK at https://dotnet.microsoft.com/learn/aspnet/blazor-tutorial/install
- Download Ngrok at https://ngrok.com/download and make an account
- Open Microsoft Sql Server Management Studio
- Login using with (localdb)\MSSQLLocalDB using windows authentication
- Right Click the Databases Folder
- Select Restore Database...
- In the popup window select Device instead of Database
- Click on the ... button and click the Add button in a new popup
- Navigate to the folder where you cloned the repo and select the Sql folder
- In the folder select TableTopSimDB.bak
- Click Ok on both popup windows
- Open command prompt on ~\jojo1023-TableTopSim\TableTopSim\TableTopSim\Server
- Run dotnet run
- Wait a moment until you see something like:
info: Microsoft.Hosting.Lifetime[0]
Now listening on: https://localhost:5001
info: Microsoft.Hosting.Lifetime[0]
Now listening on: http://localhost:5000
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Development
info: Microsoft.Hosting.Lifetime[0]
Content root path: C:\Users\Josiah\Documents\GitHub\UCSB-Cmptgcs-1L\jojo1023-TableTopSim\TableTopSim\TableTopSim\Server
- In a browser navigate to whatever url is using https, in this case https://localhost:5001
- After it loads the website should be running
- After you are done press Ctrl+C in command prompt to stop the website
- Unzip the folder you get from downloading ngrok
- Run ngrok.exe
- If you haven't already run the following command using your ngrok auth token
./ngrok authtoken <your_auth_token>
- Make sure the dotnet project is running
- Run Command
ngrok http -host-header=localhost https://localhost:5001
replacinging https://localhost:5001 with whatever url you used in the previous step - Use the https url that ngrok gives you to navigate to the website on other computers
- After you are done press Ctrl+C a few times to close the ngrok tunnel