code-service v1.0.5
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.
npm installation
Open a system terminal and enter the following command in the terminal:
npm install -g code-service
After the installation is complete, enter the command:
code-service --version
It will display:
1.0.0
Indicates that the installation has been successful.
Use tutorial
code-service [port number]
Open a terminal in the directory where you want to deploy the server and enter the command:
code-service 5500
It will display:
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:
code-service --help
Get more help.