# ticket-system **Repository Path**: xinzai2014/ticket-system ## Basic Information - **Project Name**: ticket-system - **Description**: 订票系统: 1.导航、数据管理 2.旅客列表板块 3.添加旅客板块 4.删除旅客板块 5.示意图板块 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-03-04 - **Last Updated**: 2025-03-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ticket-system * Download the docker image from https://www.dropbox.com/scl/fi/phubeweift0r7gbgdymmr/docker_image_mongo.tar?rlkey=lqobn30rm8jc2n230ptu4nxsa&st=w0edwrkh&dl=0 * For Windows, navigate to the download folder, and launch powershell and import the image as follows ```docker load -i docker_image_mongo.tar``` * Launch a container from this image using ```docker run -p 3000:3000 -p 5000:5000 -p 8000:8000 --name it5007-2220 -dit it5007_tutorial:t4 bash``` * Use VSCode (with Docker plugin installed) to i) start the container and ii) attach shell to the container. * Download the skeleton code for the tutorial * Using Git clone: - ```cd /home``` - $ ```git clone https://github.com/pkarthik88/IT5007-Lecture5.git``` # Working on the project * ```cd /home/It5007-Lecture5/``` from VSCode shell and work on the problem. You can also use the File navigation to browse to the file location and open the files inside the container. * As usual, the first step in any newly downloaded repository is to run ```npm install``` to install dependencies. * Compilation: ```npm run compile``` * Execution: As usual, you can run the code using ```npm start```. This will start the express server that serves webpages to users. # Copying Files between Container and your laptop/desktop * Copy the files over from your laptop to the docker container using the windows powershell command: ```docker cp it5007-2220:/home/``` * For copying files in reverse direction, switch the file order in above command.