A Command line interface for instantly building an express
npm install global-express
The official CLI of global-express
[![npm][npm]][npm-url]
[![Build Status][build-status]][build-status-url]
[![deps][deps]][deps-url]
[![Downloads][downloads]][downloads-url]
[![GitHub contributors][contributors]][contributors-url]
[![Issue resolution][issue-resolution]][issue-resolution-url]
[![GitHub][license]][license-url]
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.
Install it once globally:
```
$ npm install -g global-express
Global Express using multi-package repository like as:
- Express
- Body Parser
- Cors
- Debug
- Express Rate Limit
- Helmet
- Morgan
- Multer
- Rest API
- GraphQL
- Apollo-Graphql
- Swagger
`Output global express version
$ global-express -V or global-express --version
Example Usage
`
Make directory my-server
$ mkdir my-serverChange directory to my-server
$ cd my-serverInitializes the global express
$ global-express init
`$3
`
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
`$3
`
Install all dependecies
$ npm install or yarn install
``_Note: when running all of the further commands, please stay in the my-server directory_
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.
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.
[npm]: https://img.shields.io/npm/v/global-express.svg
[npm-url]: https://www.npmjs.com/package/global-express
[build-status]: https://circleci.com/gh/eksant/global-express/tree/master.svg?style=shield
[build-status-url]: https://circleci.com/gh/eksant/global-express/tree/master
[deps]: https://img.shields.io/david/eksant/global-express.svg
[deps-url]: https://img.shields.io/david/dev/eksant/global-express
[downloads]: https://img.shields.io/npm/dw/global-express.svg
[downloads-url]: https://www.npmjs.com/package/global-express
[contributors]: https://img.shields.io/github/contributors/eksant/global-express.svg
[contributors-url]: https://github.com/eksant/global-express/graphs/contributors
[issue-resolution]: https://isitmaintained.com/badge/resolution/eksant/global-express.svg
[issue-resolution-url]: https://github.com/eksant/global-express/issues
[license]: https://img.shields.io/github/license/eksant/global-express
[license-url]: https://img.shields.io/github/license/eksant/global-express