Skip to content

Ryan-DL/sgf.dev

 
 

Repository files navigation

Springfield Devs Website

Prerequisites

Local Installation Instructions

There are a couple of ways to run this project depending on if you have a .NET IDE installed or just the CLI tools

Environment Specific Steps

CLI Tools

  • Copy .env.example to .env
  • Run docker compose up -d mssql-init
    • Note: if you're on an Apple Silicon Mac Os there will be a lot of warnings, this is expected and should not cause issues
  • Navigate to the SgfDevs project folder cd SgfDevs
  • User the dotnet user-secrets command to set your connection string
    • dotnet user-secrets set "ConnectionStrings:umbracoDbDSN" "Server=localhost,1433; Database=SgfDevs; User Id=sa; Password=MyP@ssword"
    • Make sure the port and password in the above command match the values in .env
  • dotnet run
  • Open the URL that's printed in the console in your browser

.NET IDE e.g. Rider or Visual Studio (Windows)

  • Copy .env.example to .env
  • Update your .NET User Secrets with a connection string
    • Most IDEs have a shortcut to navigate to this file
    • Reference appsettings.json for an example of the ConnectionStrings object
      • Note that the actual connection string should reference the docker compose name instead of localhost
      • e.g. Server=mssql,1433; Database=SgfDevs; User Id=sa; Password=MyP@ssword
    • You can also fall back to the CLI tools instructions
  • You should see a "Configuration" option in your IDE for docker compose, run this
  • Open a browser to https://localhost:5001
    • Substitute 5001 with whatever port you specified for APP_HTTPS_PORT in .env

Umbraco In-browser Steps

  • Once the site has been launched you should see an Umbraco screen to create a new account
  • Fill this out and wait a few seconds for Umbraco to install
  • Once you're redirected to the Admin, click on the Settings tab
  • Navigation to "uSync" under "Synchronization" in the left panel
  • Under the "Everything" card click the green "Import" button
  • Once this is finished navigate to the site's root url and you should see a functioning site

Building CSS

  • Navigate to the SgfDevs project folder cd SgfDevs
  • npm install
  • npm run build or to watch for changes npm run css

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 45.7%
  • HTML 26.7%
  • SCSS 24.4%
  • CSS 1.9%
  • JavaScript 1.1%
  • Dockerfile 0.2%