WebPagePub is a blogging platform. It was written in C# and runs on .NET Core.
- Create an SQL Server database instance and update the appsettings.json file with the connection string.
- Create an IIS website which can you deploy the project to.
- Deploy the site with the proper settings using the CI.bat file. It needs the parameters for SQL and IIS
- At this time, you will have to manually create the first Administrator user in the SQL database.
- Once you have the site running and can log in, you need to add an Azure storage connection string (you will need an Azure storage account created to do this)
- From here, you should be able to use most of the site features.
For updates: The website and database can be deployed using the CI.bat file which needs parameters for the IIS server it should be deployed to.
entity framework commands
Add-Migration -Name NAMEOFMIGRATION -Project WebPagePub.Data -StartUpProject WebPagePub.Data
Update-Database -Project WebPagePub.Data -StartUpProject WebPagePub.Data -Verbose
-Create/ edit blog entries with preview mode that has images and rich text editing on each -Manage static files for use in the site -All static files uploaded work with a CDN for high speed -Tagging of blogs for filtering -Email subscribe to collect emails -Sitemap of blog posts for Google -Create/ edit snippets of text for different site sections -Create/ edit link redirections (a link shortener) -Login system for single admin
git remote set-url origin https://github.com/ryn0/WebPagePub.git git remote set-url --push origin [YOUR_FORK_URL]
Create a user for deployments and associate them with the correct subscription. https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal#required-permissions https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/active-directory-how-subscriptions-associated-directory
To deploy to a custom server and database, in PowerShell (change variables for your settings):
$MsDeployLocation = "https://YOURSITE.com:8172"
$webAppHost = "YOUR_DOMAIN.com"
$contentPathDes = "C:\Sites\YOUR_DOMAIN.com\"
$msDeployUserName = 'USER';
$msDeployPassword = 'PASSWORD';
$dbConnectionString = 'CONNECTION_STRING'
# repo path
cd "C:\repos\WebPagePub"
ci DeployWebApp -properties "@{'NeutrinoApiUserId'='$NeutrinoApiUserId';'NeutrinoApiApiKey'='$NeutrinoApiApiKey';'MsDeployLocation'='$MsDeployLocation';'webAppHost'='$webAppHost';'contentPathDes'='$contentPathDes';'msDeployUserName'='$msDeployUserName';'msDeployPassword'='$msDeployPassword';'dbConnectionString'='$dbConnectionString';}"