Quantcast
Channel: Andy Blog
Viewing all articles
Browse latest Browse all 119

nopCommerce tutorial 1 - installation and debug

$
0
0

Prepare environment

  1. operating system windows 7+, sql server 2008+

  2. control panel > program and features > turn windows feature on/off > IIS > Application Development Features > install all

  3. download and install .NET Core SDK 2.x, Windows Server Hosting (.exe) 2.x at https://www.microsoft.com/net/download/windows

  4. open iis > root > modules, check aspnetcore module

Install website without source code

  1. download nopCommerce - Web (no source) at https://www.nopcommerce.com/downloads.aspx

  2. IIS > application pools > add a new application pool > CLR version - No Managed Code

  3. unzip the dist files > IIS > sites > new a website > application pool is the new added one

  4. open browser > navigate to the new website

  5. sql server manage studio > create a new empty database

  6. return to website > enter database credentials, set admin password

  7. Test the website, login with admin password

Install the website with source code

  1. Install visual studio 2017

  2. download nopCommerce - source code at https://www.nopcommerce.com/downloads.aspx

  3. unzip and open the solution > nop.web project > App_Data > create dataSettings.json > change the connection string.

     {"DataProvider": "sqlserver","DataConnectionString": "Data Source=(local);Initial Catalog=nopCommerce;Integrated Security=true;Persist Security Info=False;","RawDataSettings": {}
     }

    Here we assume the nopCommerce database was already created. If not, follow the previous installation instruction to initialize the database tables.

    If you already have a exisitng database, please specify the proper connection string.

  4. visual studio > set nop.web project as startup > run


Viewing all articles
Browse latest Browse all 119