Skip to content

12306ng ticket pool management project . see 12306ng.org

Notifications You must be signed in to change notification settings

magicxie/12306ngpm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

12306

我要回家过年

使用说明

  1. 下载并安装Virtual Box 4.2: https://www.virtualbox.org/wiki/Downloads

  2. 下载并安装Vagrant: http://vagrantup.com/

  3. 第一次运行时,打开命令行,进入源代码的根目录,执行(如果是windows平台,在下面的命令后面加.bat后缀):

    vagrant box add base http://files.vagrantup.com/lucid32.box

    vagrant up

  4. 下次就只需要执行下面的命令就可以使用:

    vagrant up

  5. 如果是windows平台,用putty登录:127.0.0.1:2222,用户名/密码:vagrant/vagrant

  6. 如果是非Windows平台

    vagrant ssh

  7. 进入工作主目录 - 这个虚拟机上的主目录是你宿主机执行vagrant命令的目录

    cd /vagrant/trunk/tpms

    mvn compile exec:java

  8. 顺利的话,你应该可以看到BUILD SUCCESS的字样,如有任何问题,欢迎到下面的链接上报BUG: http://bugzilla.12306ng.org/

  9. 在宿主机(例如Windows系统上),使用浏览器访问以下地址并能看到一堆json输出的话,恭喜你,环境同步好了: http://localhost:12306/ticket/id/1

  10. 要访问票池原型的话,请在宿主机上(例如Windows系统上),使用浏览器打开 <12306ngpm根目录>\trunk\web\index.htm。你应该可以试验简单的按车次查询和买票。

  11. 如果需要执行测试用例的话,请执行

cd /vagrant/trunk/tpms

mvn test

English

Getting Start

  1. Download and install latest virtual box: https://www.virtualbox.org/wiki/Downloads

  2. Download and install vagrant: http://vagrantup.com/

  3. If you are run this project for the first time, change you cmd(Windows) or shell(Linux/Mac) to the root directory of this project, and run (this will create a virtual machine and setup the dev environment for you automatically):

    vagrant box add base http://files.vagrantup.com/lucid32.box

    vagrant up

  4. next time, you just cd to the root directory of this project, and run:

    vagrant up

  5. For Windows platform, please login to the virtual machine by putty, below are putty settings: Host name - 127.0.0.1:2222 User name/Password - vagrant/vagrant

  6. For Non Windows platform, run:

    vagrant ssh

  7. Now you should log on the virtual machine shell, build the project source on the virtual machine by run following:

    cd /vagrant

About

12306ng ticket pool management project . see 12306ng.org

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published