A simple CLI tool to generate Express servers from multiple available templates. View on NPM
View current tool version.
qse -vqse --versionList all available commands and options.
qse listRun the below command after installing the tool in the directory in which you want the template to be created.
qse initSelect a template
Answer a few questions to customize your template
qse init -t template_nameqse init -t template_name --docker-composeqse init -t template_name --remove-nodemonInitialize a new Express.js server without installing dependencies.
qse init template_name --remove-depsSet a custom name for your generated Express server application during initialization.
qse init -t basic -n app_nameClear Directory.
qse clear- Run the following command in the terminal to install the required
nodepackages:
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
nodepackages: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_expressroot directory, run:npm link
-
Create a Testing Directory: In the
quick_start_expressroot directory, create aqse-testdirectory:mkdir qse-test cd qse-test -
Link
qsein the Testing Directory: In the testing directory, run:npm link qse
-
Run
qseCommands: Now, you can execute anyqsecommands 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









