A Ruby on Rails-Framework-Based E-commerce Information Management Platform Design of Enterprise



Similar documents
Ruby On Rails. CSCI 5449 Submitted by: Bhaskar Vaish

Online Database Management System

The Television Shopping Service Model Based on HD Interactive TV Platform

Shop by Manufacturer Custom Module for Magento

Open Access Design and Implementation of Online Shopping System Based on the Struts Framework. Zhang Li 1,* and Zhao Luhua 2

A SaaS-based Logistics Informatization Model for Specialized Farmers Cooperatives in China

Integration of B2B E-commerce and ERP in Manufacturing Enterprise and. its Application. Cai Ting 1 ; Liu Lei 2

Implementing a Web-based Transportation Data Management System

Design and Implementation of Supermarket Management System Yongchang Rena, Mengyao Chenb

Designing and Implementing an Online Bookstore Website

PHP Web Authoring for Database Management based on MVC Pattern

Mobile terminal Database Management and Designing a Table

Customer Bank Account Management System Technical Specification Document

The Design of B2B E-commerce System Based on MVC Model and J2EE

SYSTEM DEVELOPMENT AND IMPLEMENTATION

Bitrix Site Manager 4.0. Quick Start Guide to Newsletters and Subscriptions

Bitrix Site Manager 4.1. User Guide

Development of Content Management System with Animated Graph

PHP FRAMEWORK FOR DATABASE MANAGEMENT BASED ON MVC PATTERN

Study on Architecture and Implementation of Port Logistics Information Service Platform Based on Cloud Computing 1

Landing Page. Landing Page Module for Magento

SellerDeck 2013 Reviewer's Guide

Welcome to Collage (Draft v0.1)

Certified PHP/MySQL Web Developer Course

The Research and Design of NSL-Oriented Automation Testing Framework

Commercial software development with the help of J2EE architecture and MVC

Title Page. Hosted Payment Page Guide ACI Commerce Gateway

Design of Data Archive in Virtual Test Architecture

Research on the Facilitation of E-commerce Technology Development on New-type Urbanization Construction in the Internet of Things Era

Toad for Data Analysts, Tips n Tricks

Design Approaches of Web Application with Efficient Performance in JAVA

Research and Implementation of Customizable Dynamic Website Management System

IBM Information Server

ODBC Client Driver Help Kepware, Inc.

Modern Accounting Information System Security (AISS) Research Based on IT Technology

CS169.1x Lecture 5: SaaS Architecture and Introduction to Rails " Fall 2012"

4 Understanding. Web Applications IN THIS CHAPTER. 4.1 Understand Web page development. 4.2 Understand Microsoft ASP.NET Web application development

Research Article. ISSN (Print) *Corresponding author Lili Wang

Business Portal for Microsoft Dynamics GP User s Guide Release 5.1

Software Requirements Specification for POS_Connect Page 1. Software Requirements Specification. for. POS_Connect. Version 1.0

DiskPulse DISK CHANGE MONITOR

E-business Management System Based on Coordinated Center for Dealer

Manage Workflows. Workflows and Workflow Actions

MyanPay API Integration with Magento CMS

Human Computer Interaction Final Project Tutorial. Hardware Inventory Management System (HIMS) By M. Michael Nourai

State of Michigan Data Exchange Gateway. Web-Interface Users Guide

Outline. Lecture 18: Ruby on Rails MVC. Introduction to Rails

Developing ASP.NET MVC 4 Web Applications Course 20486A; 5 Days, Instructor-led

Tutorial 4: Server-Side Setup

ACR Triad Web Client. User s Guide. Version October American College of Radiology 2007 All rights reserved.

Advanced Tornado TWENTYONE Advanced Tornado Accessing MySQL from Python LAB

The Construction of Seismic and Geological Studies' Cloud Platform Using Desktop Cloud Visualization Technology

Web-based Automobile Sales Management System. Huabo Xiao

Journal of Chemical and Pharmaceutical Research, 2015, 7(3): Research Article

Google App Engine f r o r J av a a v a (G ( AE A / E J / )

Creating Database Tables in Microsoft SQL Server

Enterprise Recipes with Ruby and Rails

SysPatrol - Server Security Monitor

Design of Company s Salary Management System. Lei Xiong

Zapper for ecommerce. Magento Plugin Version Checkout

GSPAY Merchant Manual

XTM Drupal Connector. A Translation Management Tool Plugin

A Cloud-Based Retail Management System

Design of Electronic Medical Record System Based on Cloud Computing Technology

VOL. 2, NO. 1, January 2012 ISSN ARPN Journal of Science and Technology ARPN Journals. All rights reserved

Intelligent Shopping Agent

Seamless Web Data Entry for SAS Applications D.J. Penix, Pinnacle Solutions, Indianapolis, IN

User Guide and Tutorial Central Stores Online Ordering System. Central Stores Financial Services Western Washington University

Customized Efficient Collection of Big Data for Advertising Services

Analyzing Network Servers. Disk Space Utilization Analysis. DiskBoss - Data Management Solution

Sales Person Commission

This guide shows you the process for adding ecart to your online store so that you can start selling products online.

Web Development using PHP (WD_PHP) Duration 1.5 months

Research on the Effect of E-Commerce Industrial Development on the Promotion of New Urbanization

Implementation of Information Integration Platform in Chinese Tobacco Industry Enterprise Based on SOA. Hong-lv Wang, Yong Cen

INSTALLATION AND SETUP HANDBOOK OF PAYU LATAM s PLUGIN FOR WOOCOMMERCE

Developing ASP.NET MVC 4 Web Applications MOC 20486

DNNSmart Super Store User Manual

Example for Using the PrestaShop Web Service : CRUD

Dimension Technology Solutions Team 2

Advantage of Jquery: T his file is downloaded from

Research of The Requirement of Labor Market Management System of

SHOPPING APPLICATION FOR E-COMMERCE

SFTP Server User Login Instructions. Open Internet explorer and enter the following url:

USING MYWEBSQL FIGURE 1: FIRST AUTHENTICATION LAYER (ENTER YOUR REGULAR SIMMONS USERNAME AND PASSWORD)

Social Network Website to Monitor Behavior Change Design Document

Conference Paper. Distributed Performance Systems using HTML5 and Rails. Dr. Jesse Allison 1.

Small Joint-stock Commercial Bank Lending to Small Business Risk Analysis

Integration Guide Last Revision: July 2004

WordPress 2.9 e-commerce

Official Amazon Checkout Extension for Magento Commerce. Documentation

Journal of Chemical and Pharmaceutical Research, 2015, 7(3): Research Article. E-commerce recommendation system on cloud computing

Remote Sensitive Image Stations and Grid Services

Big Data Collection Study for Providing Efficient Information

DbSchema Tutorial with Introduction in SQL Databases

tibbr Now, the Information Finds You.

NASSI-SCHNEIDERMAN DIAGRAM IN HTML BASED ON AML

Document management and exchange system supporting education process

A Tour of Ruby on Rails

Manual English KOI Desktop App 2.0.x

Transcription:

A Ruby on Rails-Framework-Based E-commerce Information Management Platform Design of Enterprise 1 Hongmei ZHANG, 2 Yuanyi ZHANG 1 School of Electron and Information Engineering, Ningbo University of Technology, ecenter@163.com 2 School of Architecture, Fuzhou University, zyye@fzu.edu.cn Abstract Started from the demand of e-commerce platform in the enterprise, this paper analyzed the key technologies of the Rails framework in-depth, and combined with the advantages of the Rails framework, to design an e-commerce information management platform of enterprise based on the Rails framework. Finally, the testing of system platform and the comprehensive testing of various system functions were validated via the Selenium, Selenium on Rails, and the Internet Explorer. The results show that through the system platform, on the one hand it can strengthen the standardized management of enterprise sales, improve the management level and the information degree of enterprise marketing, on the other hand, it can rational use of human and material resources to effectively manage the business and relationships, shorten sales cycles, reduce sales costs and increase revenue, to enhance their market competitiveness. Keywords: E-commerce, Rails, MVC Framework, Information Management 1. Introduction As China's market economy matures, the competitive pressures faced by Chinese enterprises is growing,enterprises are to survive, to improve the efficiency of internal management, make full use of internal resources, it must continue to expand sales channels and to expand consumer groups, improve the competitiveness of enterprises. With the advent of the era of information, the e-commerce information management platform of enterprise became the windows to external display product information, and to engage in business activities. How to set up an e-commerce information management platform to expand their business through the Internet, has become a focus of the development of modern enterprises [1]. With popularity of Internet technology in international trade, the demand of electronic commerce information services keeps expanding, and the platform of electronic commerce information services has become a key factor in the international trade information management in China to optimize the operation mode of international trade, increase trade opportunities and improve the international competitiveness under global economy integration and information society development [2]. The development of business e-commerce information management platform is quite complex, this complex addition to the technical complexity, there is also the industry itself complex. The rules for each industry are difference, such as the car rental industry [3]. It is different from the general commercial sales in industry. It has its own rules of the industry. Therefore, it resulted in more difference of the information systems of all kinds of enterprises. The demand of a good business e-commerce information management platform is not only a wealth of industry knowledge, but also a lot of people work together. Therefore, this paper will analyze the key technologies of the Rails framework in-depth, and combine with the advantages of the Rails framework, to design an e-commerce information management platform of enterprise based on the Rails framework. Through the system platform, on the one hand it can strengthen the standardized management of enterprise sales, improve the management level and the information degree of enterprise marketing, on the other hand, it can rational use of human and material resources to effectively manage the business and relationships, shorten sales cycles, reduce sales costs and increase revenue, to enhance their market competitiveness. International Journal of Advancements in Computing Technology(IJACT) Volume5, Number1,January 2013 doi: 10.4156/ijact.vol5.issue1.64 587

2. The key technologies of Rails framework At present, most people use JavaEE to develop Web platform. However, with the diversification of the demand, continue to join the various components and the gradual expansion of the XML configuration management files make JavaEE application systems become bloated, and increasingly unable to meet the needs of developers in the development and running speed. With the increasingly wide range applications of Web and the continue development of Web development technology, developers urgently need a framework to simplify the development process, reduce development effort and improve development efficiency. Rails is a Web framework which used Ruby programming language and open source Web application [4]. It was different from the existing complex Web develop framework, it is a Web framework which is more realistic and more efficient, it has the advantages of rapid development system of PHP and the advantages of structured programs of Java [5]. Therefore, Rails has been subject to widespread concern in the industry since July 2004 when it proposed at first. Generally speaking, there are four key technologies of the Rails framework [6,7]: (1)The Stacker MVC framework: The advantages of using the MVC architecture is that the code can be clearly separated into different logical parts, they are easy to develop, understand, maintain and control. It will not affect the code of the other layers while development in a layer. (2) The agreed rules: Rails used variety of naming conventions (such as conventions) that web applications has accumulated for many years, to instead of the XML configuration file. And the association between objects can be achieved according these conventions in Rails internal mapping and discovery mechanism. (3) Generator mapping: Rails used real-time mapping technique and meta-programming technique, which eliminates the troubles to write lots of boilerplate code developers in the development process. (4) Supporting system: The supporting system of Rails can create any database table automatically that contains the standard CRUD operations and front view. The developers can quickly and easily manipulate the data in the database table via supporting system. 3. Design of e-commerce information management platform based on Rails framework The main function of e-commerce information management platform based on the Rails framework is to realize information management of online shopping. So the core function of the system platform is to achieve the online sales capabilities to expand business sales channels, product expansion and consumer groups and to enhance their market competitiveness of enterprises. 3.1 The structure of system According to the analysis of the system requirements, we know that Rails-framework-based e-commerce information management platform of enterprise can be divided into three layers in accordance with the application: the database layer, Web server layer and the user interface layer. Figure 1 illustrated the structure diagram of system. Figure 1.The structure diagram of system 588

In addition to storing the product information, the database server can provide goods queries, updates, transaction management, indexing, security and multi-user access control and other services for enterprise users and customers. The Web server is a computer which located in the Internet, when the client browser connects to the server and request to browse the merchandise, the Web server will process the request. Then send the product information to the browser of client. The client (Client) also named as a client, it is a computer that connected with server, and providing with local service for customers. 3.2 Database design MySQL is an excellent open source database management system, which is fast, and easy to use. And Ruby on Rails framework integrated MySQL database interface directly [8]. Therefore, this article used the MySQL database management system to create and manage the background database. After analyzed the demand of e-commerce information management platform based on the Rails framework, the system platform included five entities: product type entity, product information entity, product orders entity, customer entity and administrator entity. Table.1 illustrated the information table of product orders entity. Table 1.The information table of product orders Column name Data Type Explanation OrderID Int Orders ID OrderDate Datetime Date of orders generated BooksFee Float Costs of the products ShipFee Float Transportation costs TotalPrice Float The total cost of order ShipType Varchar(50) Mode of transport ReceiverName Varchar(50) Name of recipient ReceiverPhone Varchar(20) Phone of recipient ReceiverPostCode Char(10) Post code ReceiverAddress Varchar(200) Address of recipient ReceiverEmail Varchar(50) Email of recipient IsConfirm Bit Sure or not IsSend Bit Delivery or not IsEnd Bit Acceptance by recipient? AdminID Int Merchandiser ID ConfirmTime Datetime Confirm time 3.3 An e-commerce information management platform design of enterprise A Rails-framework-based e-commerce information management platform of enterprise consisted of foreground system and background system. Foreground system was used for customers to browse the product information online, and the background system was used for the enterprise managements to manage product information. 3.3.1 The implementation of foreground system After the customer successfully login, he or she can see the product information of the enterprises sold, including product brand, model and specifications, manufacturer, price and so on. Customers can choose their favorite products, and added to the shopping cart. Figure 2 illustrated the flow chart of foreground system. 589

Figure 2.The flow chart of foreground system Therefore, from the view point of customer, besides the customer can easy to access product information, the more important point is to facilitate the purchase of products as far as possible. Therefore, the function of foreground system is to display product information for the customers and to realize the shopping cart management. The implementation of the shopping cart is the key technology of the Rails-framework-based e-commerce information management platform of enterprise. It used to display and manage the shopping information of users. Users can view and edit product information through the shopping cart management module. The main function of shopping cart is to add items to the shopping cart, browse the merchandise in the shopping cart, modify the information of the products in the shopping cart, remove the products and empty shopping cart. The shopping cart module realized to add product purchase record to the database, through add List_product to the controller file admin_control.rb. The code segment is shown below. def list_product # Call the paginate method to return the product object of the current page and the paginator object # Assigned to the @ products and @ products_pages # Pages in the product object will the press OrderTime (products order time) column in ascending order, then the product_id (product ID) column in ascending order # And the first page of a maximum number of records is set to 5 @ products_pages, @ products = paginate (: products,: order_by => 'OrderTime, product_id',: per_page => 5) end The system calls paginate method which provided by the Rails, to return the product object and paginator object of the current page (used for paging settings), these product objects sort accordance with OrderTime and product_id. And each page displays up to 5 records in the paginator object. Then it will assign to the two instance variables:@ products_pages and @ products which are returned by product object and paginator object. It realized to add destroy_product methods in admin_control.rb controller file, to delete a product record from the database. The code segment is shown below. def destroy_product # Find the product object which specified product_id, and delete the object product.find (params [: product_id]). destroy # Redirect to list_product Action redirect_to: action => 'list_product' end It needn t to add any additional code in Model files. Customers choose a purchase record from the products page, and click "Delete", and click "OK" button in the confirmation prompt window. You can see that the purchase record has been deleted. 3.3.2 The implementation of background system From the view point of enterprise managers, the functions of background system include product information management, order management and customer relationship management. Product 590

information management not only can allow the managers to increase products, delete products, and modify products, but also to search and manage the products with specified conditions through the search function. For example, the enterprise manager can search the highest-selling products in a certain period of time. Figure 3 illustrated the flow chart of search operation. Figure 3.The flow chart of search operation Open a command window, and execute the command ruby script/generate controller product in the development directory. If the command is successful executed, it will generate a controller file and product_controller.rb which is located in the directory / app / controllers. We should add the code below to the file of product_controller.rb. class ProductController <ApplicationController def search # Create the format that object using, which 4c1ddb5cfb851d566a9039d450c6bb4a7 is API Key product = product.new 4 c1ddb5cfb851d566a9039d450c6bb4a7 the render: partial => "the customer": Collection => product.customer (: tags => params [: tags], : Per_ page => '15 ') end end The main function of orders management is to management and tracking the orders which placed by the customer, dynamic grasp the progress of orders and completion, enhance operational efficiency in the logistics process, thus saving operating time and operating costs, and improve the market competitiveness of enterprises. The main function of the customer relationship management is to managing customer information resources, and to provide satisfaction products and services for customer, and to establish long-term stability, mutual trust and close relationship between enterprise and customers. Figure 4 illustrated the flow chart of background system. Figure 4.The flow chart of background system 591

4. Testing of system In order to validate the overall function of whole system, first we used the Selenium and Selenium on Rails to testing automatically. The core of Selenium was implemented by JavaScript. It can be run directly in the browser without run in another process. Therefore, the scripts which written by Selenium can issue an order similar to the mouse click, thus simulated the interaction between client browser and Web applications, and the interaction between the manager browser and Web applications [9]. For example, we can write a script to simulate customer login E-commerce Information Management Platform of Enterprise, and select commodity in the products display area, then click the "ADD TO CART" button to submit. At this time, Selenium can check whether the sending is correct through the next display page. All of these actions were achieved through the Selenium commands. Figure 5 illustrated the flow chart of customer login. Figure 5.The flow chart of customer login After the end of the automated test, we used Internet to access the home page of the system platform. Figure 6 illustrated the home page of system platform. In Web Application without separate Active X were able to realize so that the users could feel that as if they were using Window Application [10]. The information page which used to display the products information will not be overloaded, the page will not be refreshed, only a partial update. It because of the program used the Ajax technology of the Rails framework. Customers can click the product photo in product information display module, to enter the shopping cart management page directly. 592

A Ruby on Rails-Framework-Based E-commerce Information Management Platform Design of Enterprise Hongmei ZHANG 2Yuanyi ZHANG Figure 6.The home page of system platform Finally, the comprehensive testing of various system functions was validated via the Internet Explorer. The results show that the system platform can strengthen the standardized management of enterprise sales, improve the management level and the information degree of enterprise marketing. And it can rational use of human and material resources to effectively manage the business and relationships, shorten sales cycles, reduce sales costs and increase revenue, to enhance their market competitiveness. 5. Conclusion With the development and popularization of the Internet, the new way to shopping online has gradually been accepted by many people. It quickly changed or even replaced the traditional concept of shopping. Online trading as a new business model is also been applied to the competition for more enterprises. The e-commerce information management platform of enterprise designed in this paper, make full use of the advantages of the Rails framework, and overall reduced business costs, and speed up the response speed of the market, thus greatly improving the quality of service and competitiveness. 6. Acknowledgment This work is supported by Scientific and Technological Development Foundation of Fuzhou University No.2009-XY-13, and the Educational Technology Research Project of Zhejiang Province No.JB064. 593

7. References [1] Jiaohua Cheng. Study and design of e-commerce website based on Rails framework. Journal of Computer & Telecommunication, p 26 to 29, 08, 2010. [2] Yiqun Li, Cong Shu, Li Xiong, "Information Services Platform of International Trade Based on E-commerce ", AISS: Advances in Information Sciences and Service Sciences, Vol. 3, No. 1, pp. 78 ~ 86, 2011. [3] Fengling Wang. A rails-framework-based information system study of auto leasehold management. Journal of Advanced Materials Research, v 225-226, p 516-521, 2011. [4] Viswanathan, Viswa. Rapid web application development: A ruby on rails tutorial. Journal of IEEE Software, v 25, n 6, p 98-106, 2008. [5] Maximilien, E. Michael. Web services on rails: Using ruby and rails for Web services development and mashups. In Proceeding(s) of the 2006 IEEE International Conference on Web Services, p xliii, 2006. [6] Bock, Benjamin. Ruby topic maps. Journal of Lecture Notes in Computer Science, v 4999 LNAI, p 172-185, 2008. [7] Emoto, M.; Murakami, S.; Yoshida, M.; Funaba, H.; Nagayama, Y. Web interface for plasma analysis codes. Journal of Fusion Engineering and Design, v 83, n 2-3, p 453-457, 04, 2008. [8] Peter Cooper.Beginning Ruby: From Novice to Professional.2009. [9] Nan Feng, Jing Xie, Yingxin Wu. Comparison of Ruby on Rails development tools. In Proceeding(s) of the 2009 WRI World Congress on Software Engineering, WCSE 2009, v 4, p 290-294, 2009. [10] Myoung-Kyoum Kim, Byung-Sub Jo, Jae-Soo Yang, and In-Whee Joe, "Performance Analysis of Java Web Application Based on AJAX", RNIS: Research Notes in Information Science, Volume 2, pp. 32 ~ 35, 2008. 594