Font Size: a A A

The Design And Implementation Of Ruby On Rails Based Invoicing System

Posted on:2019-07-02Degree:MasterType:Thesis
Country:ChinaCandidate:Z X YuFull Text:PDF
GTID:2428330590492443Subject:Software engineering
Abstract/Summary:PDF Full Text Request
For many enterprises,business-related data such as purchase,sale and inventory is the most important and central part of all data.The efficient way to manage and share of these data is one of the key factors that makes enterprises to develop at top speed.At present,many invoicing systems are designed for large enterprise businesses.For SMEs(small and medium-sized enterprises),it requires very high costs to purchase,deploy and maintain systems.With the rise of the Internet,the SaaS(Software as a Service)model has been booming.Many service systems for SMEs also emerged.Enterprises charge for the service content and duration.After paying,these services can be used by enterprise users by the Internet at any time and in any place.The invoicing system researched in this paper is an enterprise application based on the SaaS model.In order to be invincible in the fierce competition environment of the Internet,the products need to develop at high speed and continue to innovate.At present,many web frameworks are complex in configuration and low development efficiency.The Ruby on Rails framework is a web framework based on the MVC pattern.It provides many basic components and is very easy to be configured,which greatly improves the developer's efficiency.In this paper,an invoicing system based on the Ruby on Rails framework is designed and implemented.The system uses MySQL database to store system data,uses Redis to store cached data,uses Action Cable to implement front-end and back-end real-time communication solutions,which improves the user experience,and realizes the processing of background tasks based on Sidekiq framework,which improves the system's data handling capacity,also reduces the system's response time;Yarn,the JavaScript package management tool which is in the Rails framework,added the front-end framework React,which simplifies the data processing on the front page and reduces the page rendering time.The main research work of this paper is as follows:(1)Overall Architecture Design of Invoicing System Based on Ruby on Rails FrameworkBased on the above analysis,in consideration of customer requirements and the reality,this paper proposes an overall architecture design scheme for invoicing system based on Ruby on Rails framework.(2)Design and Implementation of Invoicing System Based on Ruby on Rails FrameworkThe paper proposes the design and implementation of the invoicing system split into below parts:Firstly,to illustrate the design and implementation of the basic data module,the product module is taken as an example.Taking importing of products datum for instance,the paper introduces the application of Action Cable in the system.The soft delete solution based on Rails framework is also introduced.Then,according to the purchase,sale and inventory management processes,the paper introduces the design and implementation of the document module.For the repeated submission of data which happened in some cases,Redis-based retransmission prevention strategies are designed and implemented.Third,based on user statistics and analysis of enterprise data requirements,the report module is designed and implemented.The report data is generated based on the background task processing framework--sidekiq.Finally,combined with the front-end framework React,the paper illustrates the design and implementation of the interaction module.(3)Evaluation of Invoicing System Based on Ruby on Rails FrameworkThis paper analyzes the application condition of an actual enterprise and the collection of system monitoring data.It proved that the invoicing system based on Rails framework has a good application value in enterprise management.To sum up,the system uses the Action Cable to realize the real-time communication between the server and the multiple clients,which ensures the scalability of the system and reduces the resource occupancy of the server.Based on the Active Record module in the Rails framework,a soft deletion scheme is designed and implemented innovatively,which optimizes the database structure and ensures the consistency of the data.In view of the large amount of data in the system,the asynchronous task framework is used to optimize the system architecture.Because of the presence of a large number of calculations on the front page,the React framework is used to ensure the maintainability of the system and improve the performance of the web page.
Keywords/Search Tags:Invoicing System, Ruby on Rails, Action Cable, Sidekiq, React
PDF Full Text Request
Related items