Project Directory

An Express Gateway project directory can be generated by running eg gateway create. This command produces a standalone instance of Express Gateway.

Directory Structure

This is the directory structure of an Express Gateway project.

my-gateway
├── config
│   ├── gateway.config.yml
│   ├── models
│   │   ├── applications.js
│   │   ├── credentials.js
│   │   └── users.js
│   └── system.config.yml
├── package.json
└── server.js
  • config: Configuration files for running the gateway.
  • package.json - Contains an express-gateway dependency
  • server.js - A generated server file for bootstrapping the Express Gateway configuration