A simple CLI tool to generate Express servers from multiple available templates. View on NPM
View current tool version.
qse -v
qse --version
List all available commands and options.
qse list
Initialize a new Express.js server.
qse init
Clear Directory.
qse clear
- Run the following command in the terminal to install the required
node
packages:
npm i -g quick_start_express
- Run any qse commands in the target directory such as
qse init
,qse clear
,qse -v
... etc.
Follow the guidelines in CONTRIBUTING.md to contribute to the project.
-
Download and install Node.js from https://nodejs.org/
-
Verify the installation by running the following command in the terminal:
node -v
The version of Node.js should be displayed.
-
Run the following command in the terminal to install the required
node
packages:npm i
To test the CLI tool locally, you need to link the package. Use a separate testing directory to avoid modifying files in the root directory of quick_start_express
.
-
Link the Package in the Main Directory: In the
quick_start_express
root directory, run:npm link
-
Create a Testing Directory: In the
quick_start_express
root directory, create aqse-test
directory:mkdir qse-test cd qse-test
-
Link
qse
in the Testing Directory: In the testing directory, run:npm link qse
-
Run
qse
Commands: Now, you can execute anyqse
commands in the testing directory, such as:qse init qse clear qse -v
Note
Running npm link qse
in the root directory may modify package.json
. Always use a separate testing directory to avoid this.
Clean-Up: After testing, you may delete the testing directory if it’s no longer needed.
To execute the tests, navigate to the root directory of the quick_start_express
project where all dependencies are installed, and run the following command:
npm test