# code-service **Repository Path**: codemiao08/code-service ## Basic Information - **Project Name**: code-service - **Description**: 一款简易的命令行服务器软件 - **Primary Language**: JavaScript - **License**: AGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2023-04-05 - **Last Updated**: 2023-07-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Code Service Code Service is a simple command-line static server tool based on Nodejs. The operation method is simple, and the server can be turned on with only one command. It is a great option for front-end beginners. ## Installation Currently, Code Service uses npm for installation. Please make sure that Nodejs and npm are installed on the system. The installation of Nodejs can be found in [nodejs.org](https://www.nodejs.org). ### npm installation Open a system terminal and enter the following command in the terminal: ``` powershell npm install -g code-service ``` After the installation is complete, enter the command: ```powershell code-service --version ``` It will display: ```powershell 1.0.0 ``` Indicates that the installation has been successful. ## Use tutorial ```powershell code-service [port number] ``` Open a terminal in the directory where you want to deploy the server and enter the command: ```powershell code-service 5500 ``` It will display: ```powershell The server is already running at 127.0.0.1:5500 ``` The server started successfully. Open http://127.0.0.1:5500/ browser and you'll see your page. ## Help Enter the command in the terminal: ```powershell code-service --help ``` Get more help.