Developers

 

Setting up a Development Environment

 

Setting up a development environment is easy with Six910 Cart and Six910Pay. Follow these steps:

  1. Pull down the binary file named server from the root of the project here
  2. Pull down the designer project here
  3. Pull down the six910.sql file from here

 

Database Installation

You will need a local version of MySQL running on your development box. 

  1. Connect to the database with a tool like DbVisualizer
  2. Open a query editor and copy the content of six910.sql into the screen
  3. Run the query
  4. You should now see a database named six910

 

Run the Back-end 

Running the back-end is ease. The server uses localhost by default for the MySQL server and a username of admin and a password of admin.

To run the server, just place the file in any folder on your system and from the command line, type ./server

Note: The server file on github is compiled for linux. If you are using another OS, just pull the source and recompile with Golang.

 

Run the Designer

Pull the designer to any location and run ./main from the command line. By default, the designer looks for the back-end services on localhost.

Note: The main file in the designer is compiled for linux. If your are using another OS, just pull the source and recompile with Golang.

 

Building Templates

With the designer from above, navigate to the static/templates folder. There you will see three existing templates in folders. You can use those as a starting point for building a new template. Once the template is complete, it must be packaged in a tar.gz file named for the template name. If your template is named webstore, for example, then the file would be named webstore.tar.gz.

 

Six910Pay 

Six910Pay plugin is built into Six910 Cart and integration is easy.

 

Plugins 

Plugins in Six910 Cart or just server-side applications written in any language and placed on your server. To activate a plugin, you would place JavaScript code that calls your application with JQuery. The JavaScript would be placed in any template file where needed. A good plugin example for reference would be the PayPal plugins built into Six-9-10 UI.