- run
npm install
- install libman CLI with
dotnet tool install -g Microsoft.Web.LibraryManager.Cli
, then install libraries withlibman install
- copy example.appsettings.json to appsettings.json and customize
- copy example.appsettings.Environment.json to appsettings.Development.json (or whatever environment name you need) and customize.
- install dotnet-ef:
dotnet tool install --global dotnet-ef
- build (command line:
dotnet build
) then create the database withdotnet-ef database update
- Modify the publish task in .vscode/tasks.json to fit your environment.
- Open the command pallette and choose Tasks: Run Task then choose publish. The output will be placed in the release dir, deploy as needed.
In order to use Docker Compose, the port in the urls
property in appsettings.json
or appsettings.<Environment>.json
much match the
internal port in the ports
section of the palavercore
service in docker-compose.yml
. The connection string in app settings must also
match the Postgres credentials in the db
service in docker-compose-yml
and the host
must be set to db
.
You can also update your local hosts file and add an alias of db
to 127.0.01
and keep the PalaverCoreDB
container runner by itself and use
that as the back end for launching Palaver directly in VS rather than a container.
gulp build-sui - rebuild Semantic UI CSS and JS files. gulp clean-sui - clean shit gulp watch-sui - watch for changes in wwwroot/lib/semantic/src and rebuild on the fly
All of those build tasks can also be run from the command pallette (Ctrl+Shift+P) via Tasks Run Task. I'd recommend not running watch-sui that way though as the built-in task runner in VSCode can only run one task at a time so you'd have to kill the watch to build or debug Palaver.
~/semantic.json is the base config file for semantic that tells gulp where to find it and which components to include. The rest of semantic customization is done under wwwroot/lib/semantic/src.