- .NET SDK 6.x
- Docker Desktop
- Note for Apple Silicon Mac OS users, make sure to enable "Use Rosetta for x86/amd64 emulation" option in the Docker Desktop settings
- Node.js 18.x
There are a couple of ways to run this project depending on if you have a .NET IDE installed or just the 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 stringdotnet 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
- 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 theConnectionStrings
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
- Note that the actual connection string should reference the docker compose name instead of
- 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
- Substitute 5001 with whatever port you specified for
- 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
- Navigate to the SgfDevs project folder
cd SgfDevs
npm install
npm run build
or to watch for changesnpm run css