npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

gen-express-app

v0.3.0

Published

Alternative to express-generator, an easy-to-use tool for creating modern express applications.

Downloads

318

Readme

Gen Express App

License npm node Make With Love

Alternative to express-generator, an easy-to-use tool for creating modern express applications.

  • Interactive CLI Tool.
  • Build-in TypeScript support.
  • ESM module support.
  • Improved app structure for modern apps.

Quick Start

Install gen-express-app package:

npm install -g gen-express-app

For Windows users

On Windows client computers, the execution of PowerShell scripts is disabled by default. To allow the execution of PowerShell scripts, which is needed for npm global binaries, you must set the following:

Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned

Carefully read the message displayed after executing the command and follow the instructions. Make sure you understand the implications of setting an execution policy.

Basic usage

To create a new workspace and initial starter app:

  1. Run the CLI command eg new and provide the name express-app, as shown here:
eg new express-app

Note if you cannot using eg as global command

If u have an error on using eg as global command, just try to use command below:

npx gen-express-app@latest new express-app
  1. The eg new command prompts you for information about features to include in the initial express app. Accept the defaults by pressing the Enter or Return key.

The CLI installs the necessary ExpressJS npm packages and other dependencies. This can take a few minutes.

The CLI creates a new workspace and a simple project`s files, ready to run.

Run generated ExpressJS project

To run generated project just use one of this commands below:

Production mode

cd express-app
npm run start

Development mode

cd express-app
npm run dev

Why gen-express-app ?

gen-expressp-app is an Express application generating tool inspired by express-generator, retaining most of its excellent features and extending and improving where it falls short. We fully support ESM module and provide TypeScript templates to choose from, as well as an easy-to-use interactive interface. These are all cool features that express-generator does not have!

Usage

Interactive Interface

Interactive interface is super easy to use:

eg interactive
# or specify project-name
eg new project-name

follow the steps on CLI then you can head into your express application.

Command Line Options

You can also use the command line options, just like the way you did before.

  • example:
eg new express-app --view=ejs --package=pnpm
  • get help by typing --help:
$PC ~: eg --help

Usage: eg [command]

Arguments:
  command                         name of usage command (new / generate <component_type> )

Options:
  -V, --version                   output the current version
  -t, --template <template-name>  choose express template (choices: "javascript", "typescript", "javascript-mvc", "typescript-mvc")
  -v, --view <view-engine>        choose view engine (choices: "no-view", "ejs", "pug", "hbs")
  -p, --package <package-name>    choose package manager (choices: "npm", "yarn", "pnpm")
  -h, --help                      display help for command

Commands:
  dev [options] <bin-path>        starting development server
  start [options] <bin-path>      starting production server
  new <project-name>              generate project with name
  interactive                     generate project in interactive mode

Contributing

If you are interested in contributing to the development of the Gen Express App, we would be happy to receive your contributions! You can start by checking the issues to see if there are any problems that need to be addressed (such as new features or unresolved errors), fork the project, and submit a pull request to participate in the contribution.

  • @Dalufishe
  • @the-az-dev
  • @Vocaloid2048

Supporting Gen Express App

If you find the tool useful, consider giving us support by rating it with a star!

License

MIT

Links

Github Npm