Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

This subject shows how to create a new site running Lynicon in Visual Studio 2013.

Create Solution

Lynicon currently only runs on old-style ASP.Net MVC, not on ASP.Net Core.  An ASP.Net Core version of the CMS is in development.

To set up an MVC 5 website, do the following:

Select ASP.Net Web Application as the project type

Choose the MVC template

Install Lynicon

To install Lynicon as it is not currently in the NuGet library, you will need to set up a local Nuget feed which is described here.

Open the NuGet Package Manager and select the Local package source, choose Lynicon.Identity package.  This automatically performs all the steps in Manual Installation and Generic ASP.Net Identity.

Create the Database

Determine a SQL database locally or remote which will host the content and user data.  In web.config, set the value for the connection string element which has been created by the installation, and also the DefaultConnection connection string which already existed (ensuring user tables are created in the same database as content tables):

  <connectionStrings>
    <add name="DefaultConnection" connectionString="..."  providerName="System.Data.SqlClient" />
    <!-- Add lynicon database connection string here, or delete if no database being used -->
    <add name="LyniconContent" connectionString="..." />
  </connectionStrings>

Run the SQL script at /Areas/Lynicon/Admin/SQL/LyniconCoreInit.sql against the database to create the initial tables for Lynicon.

Set up an Admin User

Run the site locally. On the home page the template has created, select Register in the top black bar at the right to create a user account which will be the initial admin user.  Fill in the form this takes you to:

This will create a user record, but in order to do this it will also run EF Migrations to create the tables for standard ASP.Net Identity.  If you return to inspect the database you will find these have been created.

Now the final task is to create the Lynicon roles and add them to the user you have created.  Run the SQL script at /Areas/Lynicon/Admin/SQL/SetUpIdentity.sql against the database, which will create the default roles for Lynicon and make all currently existing users Admins in the CMS.

If you now log in you will be able to see the Lynicon pages as described in the User Manual.  Lynicon is now ready to be used for CMS functions.

To now set up a basic content-managed model, route and view, consult the Hello World page.

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.