Skip to content
Josiah Ross edited this page Nov 20, 2020 · 8 revisions

Welcome to the jojo1023-TableTopSim wiki!

Getting Started

Prerequisites

1. Clone Repo

2. Get Database ready

  • 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

3. Run on dotnet

  • 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

3. Make public via Ngrok

  • 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