Skip to content

Instantly share code, notes, and snippets.

@leighghunt
Last active July 12, 2019 00:57
Show Gist options
  • Save leighghunt/9e7c9768b685e48f2a12bc84701fbca6 to your computer and use it in GitHub Desktop.
Save leighghunt/9e7c9768b685e48f2a12bc84701fbca6 to your computer and use it in GitHub Desktop.
Dotnet in glitch.com

Example: https://glitch.com/~dotnet-new-mvc

Running example: https://dotnet-new-mvc.glitch.me/

Go to https://glitch.com/edit/#!/blank and click Remix to edit.

  • Tools -> Logs to see logging output
  • Tools -> Fullpage Console to open up console in new window

In console window:

dotnet new mvc
refresh

In Glitch, edit package.json

{
  "name": "blankity-blank",
  "version": "1.0.0",
  "scripts": {
    "start": "dotnet run"
  }
}

If Properties folder visible, edit launchSettings.json. If not visible, try refresh in console windows again, or edit in console using nano or your favourite editor.

Change applicationUrl to just http://localhost:3000

    ...
    "app": {
      "commandName": "Project",
      "launchBrowser": true,
      "applicationUrl": "http://localhost:3000",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    }```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment