Skip to content

Latest commit

 

History

History
88 lines (61 loc) · 2.42 KB

README.md

File metadata and controls

88 lines (61 loc) · 2.42 KB

Pioneer Blog

Active code based used for Pioneer Code.

Current stack...

  • ASP.NET Core 2.x
  • Entity Framework Core 2.x
  • Angular 5.x

Current deployment...

Admin

Full-featured admin portal. alt text

Setup

Repository

Clone the repository to your local environment.

git clone https://github.com/PioneerCode/pioneer-blog.git

Configuration

All configuration is derived from appsettings.json. That being said, it is recommended you create an appsettings.development.json and appsettings.production.json file to override these settings.

Database

  • Update the connection string inside of Pioneer.Blog\appsettings.json & Pioneer.DAL\appsettings.json.
  • Open a command prompt at Pioneer.Blog and run the following
dotnet ef database update

At this point, a database and all corresponding tables should have been created in your database instance.

Front-end

Install node on your local environment and run the following.

gulp

npm rm --global gulp
npm install gulp-cli -g

typings

npm install typings -g

Navigate to the Pioneer.Blog directory from your command prompt and run....

  • npm install
  • npm rebuild node-sass --force
  • gulp public

Navigate to to Pioneer.Blog\Areas\admin-app from your command prompt and run....

  • npm install
  • npm start

Run

That is it! You now should be able to build and launch the project from your IDE of choosing.

Registering A Super Account

  • Launch your application in debug mode.
  • Navigate to /account/register.
    • Register a new account.
  • Open up your AspNetUserClaims and AspNetUsers table.
  • Add a new claim of the type isSuperUser
    • Supply your newly registered UserId as the FK.

alt text

You can now use this account to perform all administrative tasks.

What Is Next

  • If your curious what is coming down the pipe, I track features as issues.
  • If there is interest, I am willing to entertain the idea of abstracting the vast majority of code away from the Pioneer Blog domain so that it can't be reused without to much refactoring.