Active code based used for Pioneer Code.
Current stack...
- ASP.NET Core 2.x
- Entity Framework Core 2.x
- Angular 5.x
Current deployment...
- SQL Database hosted at WinHost
- Site hosted at DigitalOcean
- Under Ubuntu and faced by NGINX
Clone the repository to your local environment.
git clone https://github.com/PioneerCode/pioneer-blog.git
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.
- 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.
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
That is it! You now should be able to build and launch the project from your IDE of choosing.
- 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.
You can now use this account to perform all administrative tasks.
- 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.