Setup


Setting up Easyfieds is very simple. After extracting files from zip archive file, you can open project solution file in Visual Studio. We recommend to use Visual Studio 2022 or any up to date versions. Watch the following video for more explanation.

You receive the following files after extracting project compressed file.
eCommerce MVC folder structure

  1. Build: In this folder you get the build files which you can directly deploy to your server.
  2. Database Scripts: This folder contains the database related scripts.
  3. Documentation: As name suggest this contains the documentation files.
  4. Language Packs: This folder contains language packs for project to be installed.
  5. Source Code: You get the complete source code file in Visual Studio format in Source Code folder.

Database

Easyfieds uses Entity Framework Code first approach to create database. You don't need any SQL scripts to create database or its tables and columns. You just need change the value of connection string in Web.config file according to to your database server instance. The project will automatically create database tables and seed initially required data with the help of entity framework. Follow below steps to get connection string information and setup your database on different enviroments.

Setting Database on Local Machine

When you are trying to setup Easyfieds in your local/development environemnt.

  1. Open Command Prompt by pressing Win+R and then type cmd in run window. Command Prompt will be opened. Get the name of SQL server instances by typing  sqllocaldb i  in your command prompt.
    SQL Server Instances
  2. Open Easyfieds in Visual Studio.
  3. Open web.config file from Easyfieds project and search for AppConnectionString in connectionStrings tag.
    Easyfieds Web.config
  4. Change  MSSQLLocalDB  with your preferred server instance name.
  5. Run the project in browser by pressing Ctrl+F5. It'll take a moment when loading for the first time because Entity Framework is creating database and its entities and seeding the initial data in the background.

Setting Database on Remote/Release

When you are trying to publish Easyfieds with remote database.

  1. Get the database connection string for your remote database server. You can create a new empty database or choose an existing one.
  2. Open project in Visual Studio.
  3. Open web.config file from App.Web project and search for AppConnectionString in connectionStrings tag.
    Easyfieds Web.config
  4. Change connection string value to your database connection string from step 1.
  5. Publish Easyfieds to your server. We recommend to use Microsoft Azure, Amazon AWS or Godaddy Windows Hosting but you can host it on any windows server.
  6. Open your published site in the browser. It'll take a moment when loading for the first time because Entity Framework is creating database and its entities and seeding the initial data in the background.

Default Roles and Users

Easyfieds also seed following default role and user data with the help of Entity Framework when database is first created. It is defined in AppDBInitializer class which exists in App.Data project.

  1. Super Admin

Easyfieds also has a default Adminstrator user with the following credentials.

  • Email: super-admin@site.com
  • Username: SuperAdmin
  • Password: super-admin123

For website level configurations e.g. Application Name, Currency Symbol, Payment Methods etc check Configurations.