Giter Site home page Giter Site logo

trainticketssystem's Introduction

github code updated

数据库课程设计——火车票售票系统

很烦数据库课程设计?本项目应该能够帮到你~
线上访问地址:http://www.shadowingszy.top/train-tickets/index.html

train-tickets-back-end为后台工程文件。
train-tickets-front-end为前端工程文件。

系统开发平台:

开发工具:eclipse,webstorm
开发语言:Java,jsp,css,JavaScript
数据库:MySQL
中间件:tomcat 8.0
后台框架:SpringMVC
前端框架:React(前端只是做了一个展示,不是很重要)

系统功能:

在本系统中,前端和后台使用json进行数据交互,下面的每一个功能均对应着一个接口,括号中为接口的URL,具体实现可以参考源代码。

用户层面:

添加用户,即注册。(/register)
根据用户名和密码获取用户的所有信息,即登录。 (/login)
修改用户。 (/updateUser)

订单层面:

添加订单,在本系统中添加订单就意味着锁定座位。(/lockSeat)
修改订单。(/updateOrder)
删除订单。(/deleteOrder)
根据用户ID获取订单信息。(/queryOrder)

火车层面:

根据车站获取列车ID。(/getTrainByStop)
根据列车ID获取列车信息。(/getTrainByTrainId)
列车换乘查询。(/getTransfer)
查询列车座位剩余。(/getRemainSeats)
查询所有通列车的城市。(/getAllCities)

部署须知:

前端页面的开发需要安装node.js
之后进入train-tickets-front-end文件夹,输入npm install, 然后输入npm run start
访问localhost:3000即可进行开发。

前端页面部署需要先输入npm run build打包前端页面。
然后将打包出的build文件夹中的全部文件放到train-tickets-back-end/WebContent文件夹中。

最后进行后台的部署,将train-tickets-back-end项目打包成war文件后,直接丢到tomcat里。
向localhost:8080/TrainTickets/xxx (xxx为对应的接口)发起post请求就可以了。

trainticketssystem's People

Contributors

amusimg avatar shadowings-zy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.