Coder Social home page Coder Social logo

kaanyurdakul / asp.net-core-cms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yogyogi/asp.net-core-cms

0.0 1.0 0.0 91.72 MB

The world’s first ASP.NET Core CMS

Home Page: https://www.yogihosting.com/category/aspnet-core/

License: MIT License

Shell 0.25% JavaScript 3.68% Ruby 0.01% PHP 0.15% C# 30.89% PowerShell 0.07% CSS 27.25% HTML 36.78% SCSS 0.91%

asp.net-core-cms's Introduction

Shree RAM CMS - the world's first ASP.NET Core CMS

Shree RAM CMS

This is an Open-Source Content Management System(CMS) developed with ASP.NET Core framework by Microsoft. Use it to create any type of Responsive websites with unlimited pages and unlimited blogs.

This CMS works like WordPress CMS and you will like it.

Programming Language, Web Technologies, Frameworks and Scripts used to Build this CMS.

I have build this CMS using the following:

  1. ASP.NET Core 5.0
  2. C#
  3. Bootstrap 4
  4. SQL Server
  5. ASP.NET Core Identity
  6. Entity Framework Core 5.0

Installation

Download the CMS files in your system and click the .sln file to open it with Visual Studio 2019 or newer version.

  1. I have also created a Youtube video for the installation of this CMS, you will find it very useful.
  2. Also check the working tutorial of this CMS Youtube video for the working of this CMS.

You need to follow the following Steps:

Step 1: Change connection string

Then open the appsettings.json file given in the root of the CMS and change the connection string to your database. By default it is:

{ "ConnectionStrings": { "DefaultConnection": "Server=vaio;Database=CMSCore;Trusted_Connection=True;", "IdentityConnection": "Server=vaio;Database=CMSCoreIdentity;Trusted_Connection=True;" } }

To run this CMS you will need 2 databases. One that will store pages, blogs, images, etc. The other one will be used by Identity Management to do authentication and authorization of Admin User.

You don't have to learn Identity for using this CMS but if you still like then visit How to Setup and Configure Identity Membership System in ASP.NET Core

Step 2: Run EF Core Migration commands

The EF Core Migrations commands will create both the databases for this CMS.

Open Package Manage Console and go to the directory of the Startup.cs class:

PM> cd CMS

Then run these 4 commands one by one:

PM> dotnet ef migrations add Migration1 --context AppIdentityDbContext

PM> dotnet ef database update --context AppIdentityDbContext

PM> dotnet ef migrations add Migration2 --context CMSContext

PM> dotnet ef database update --context CMSContext

Step 3: Create the SQL Stored Procedures and SQL Functions

I have placed a file called script.sql on this repository. You run this script in your SQL Server Management Studio on the CMS database (not on Identiy Database). This script will add all the SQL SPs and SQL Functions.

Step 4: Create ADMIN User

The ADMIN user should be created in the Identity Database and this user will access the CMS to add, update, delte the pages, blogs, media, menus, etc.

Run your application in Visual Studio (shortcut F5 key) and then open the below URL in your browser to create the Admin user:

https://localhost:44375/Login/Create

Change port 60905 to the one your VS has set for this CMS. If you are running this CMS online in a domain then URL will be:

https://yourdomain.com/Login/Create

By default the Admin user will be created with the following Credentials:

Username - admin password - Secret123$

Step 5: Login to CMS using Admin URL

The login URL of the CMS is:

https://localhost:44375/Login

Login with the following Credentials:

Username - admin password - Secret123$

Step 6: Create Demo Data

You need to add one page and one menu in the CMS for the website to start displaying.

a. Add Page

After loggin to the CMS go to Page > Add Page and create a new page called 'Home'. Add it's name as 'Home', url as 'Home' and inside the description add the HTML for the home page of your site.

b. Add Menu

In the CMS go to Page > Add Menu. There are 2 sets of textboxes, on on the right side and other on the bottom.

On the right side text boxes you add menu items. So add 'Home' for name field and 'home' for slug field.

On the bottom text boxes you give the menu name. So add 'Main' for name and select 'Active' for status.

Finally Click the submit button at the bottom.

You can now View the website by running this URL in your browser:

https://localhost:44375

Demo Data by running SQL Script

You can ignore step 6 completely and just run the data.sql file (provided in this repository) in your SQL Server Management Studio on the CMS database (not on Identiy Database). This script file will add all your DEMO data.

Support

If you find it useful then support this Project. Thank you.

Buy Me A Coffee

You will love the 'Sree RAM' CMS made in ASP.NET Core framework. Star this Repository to show your support.

Please use the GitHub issue tracker to ask questions.

asp.net-core-cms's People

Contributors

yogyogi avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.