by Leo Sulzbacher
Start by cloning the repository:
git clone https://github.com/Brainterminator/poster-cmsThen you need to setup a local PostgreSQL Server on your machine.
In the appsettings.json file you can find an example of how to add a Connection String for your database connection. It is recommended to create a appsettings.Development.json in your project for development. That file will be ignored by version control, therefore no secrets will be accidentally shared.
"ConnectionStrings": {
"PostgresConnection": "Host=localhost;Port=5432;Database=<DATABASE>;Username=<USER>;Password=<PASSWORD>"
}You have to install Entity Framework:
dotnet tool install --global dotnet-efYou can now migrate your database. Run the following command in the root of this repo:
dotnet ef database updateTo make sure Cookies and JavaScript is working install the Dotnet Developer certificates:
dotnet dev-certs https --trustIf you proceeded all prior steps you should be able to run the server using:
dotnet run