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

global-express

v0.0.1

Published

A Command line interface for instantly building an express

Downloads

151

Readme

npm Build Status deps Downloads GitHub contributors Issue resolution GitHub

About

A Command line interface for instantly building an express server.
Global Express using different strategies :

  • Scaling on a single machine, the common concept is to have multiple processes running on the same port.
  • Create models, graphql (resolvers and schema), rest-api (controllers, routes and services) and doc-api (swagger) in matter of seconds.
  • Server configuration which includes port, host, http/https, page limit, rate limit suspend time and max hit per IP.

How to install

Install it once globally:

$ npm install -g global-express

Packages

Global Express using multi-package repository like as:

Commands CLI

# Output global express version
$ global-express -V or global-express --version

# Output global exprer helper command
$ global-express -h or global-express --help

# Initializes the global express with current or new directory
$ global-express init or global-express i

# Initializes the global express with new directory
$ global-express init <directory> or global-express i <directory>

# Delete directory the global express
$ global-express clean <directory> or global-express c <directory>

Example Usage

# Make directory my-server
$ mkdir my-server

# Change directory to my-server
$ cd my-server

# Initializes the global express
$ global-express init

Directory structure

my-server
├── ...
├── apidoc                # Static HTML for API documentation
├── config                # Configuration database oracle dan doc api
├── docs                  # The screnshoot, doc api and json format import insomnia
├── grapqh                # Directory a query language for API
├   ├── resovers          # Containing files for the resolver
├   └── schema            # Schema models
├── logs                  # Log files
├── models                # Structure of tables and properties
├── restapi               # Directory a rest language for API
├   ├── controllers       # Containing class files for the controllers
├   ├── routes            # Containing routes API
├   └── services          # Containing class files for the service controllers
├── server                # Starter module express
└── utils                 # Files that are provided application

Install all the needed dependencies

# Install all dependecies
$ npm install or yarn install

Note: when running all of the further commands, please stay in the my-server directory

Contributing and Internal Documentation

The global express family welcomes any contributor, small or big. We are happy to elaborate, guide you through the source code and find issues you might want to work on! To get started have a look at our documentation on contributing.

Notes

Note: The experience this CLI provides does not work as smooth in Git Bash terminal, since it is not an interactive terminal, but if you are using Git Bash inside VS Code, then there are no problems, I found no complications using any other terminal.

Feel free to post issues if you run into any.