Giter Site home page Giter Site logo

express-gateway.io's Introduction

Netlify Status

express-gateway.io

This is the repository of the website express-gateway.io. It is hosted directly from the repository as a GitHub Pages website.

The main branch for this repository is gh-pages.

The live site is published off gh-pages.

Local Setup

To run website locally:

  1. Install Ruby and Bundler if you don't have them already.

Note: highly recommend installing rvm to install and manage Ruby

  1. Install Jekyll and other important Gems. cd to the repository directory and run the command:
$ bundle install
  1. Now do a build (this is only needed if pushing to GH pages)
$ bundle exec jekyll build
  1. Run Jekyll using the following command:
$ bundle exec jekyll serve
  1. You'll need to override _config.yml with the baseUrl set to "/"

  2. Load http://localhost:4000/ on your browser.

Auto Regeneration

By default, Jekyll will auto-regenerate the static pages if you change files through a built in filewatcher. You can simply refresh your browser to see the updates.

Formatting

Jekyll uses a variant of Markdown known as Kramdown.

Jekyll uses the Liquid template engine for templating.

You can use GFM fenced code blocks.

Examples:

var express = require('express')
var app = express()
app.listen(3000)
apiEndpoints:
  help:
    host: '*.example.com'
    paths: /help

Algolia Index

Docsearch is crawling our website every day in order to generate our search index.

express-gateway.io's People

Contributors

alamgirqazi avatar allexus avatar altsang avatar antamb avatar brandonbrown avatar dependabot[bot] avatar drmegavolt avatar gianpaj avatar gpietro avatar hbobenicio avatar ind1go avatar ingo-eichhorst avatar irfanbaqui avatar jingsam avatar kevinswiber avatar kolbinski avatar larryschirmer avatar miser avatar mmadaria avatar mohammadwasi avatar nvanheuverzwijn avatar ravikp7 avatar ronanquillevere avatar ryanalbon avatar sashanullptr avatar satvikr avatar shashikan8h avatar slothfriend avatar vkarpov15 avatar xvincentx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

express-gateway.io's Issues

Cannot interact with express gateway admin while in the same path (PWD)

$ eg gateway create
? What's the name of your Express Gateway? expressg
? Where would you like to install your Express Gateway? expressg
? What type of Express Gateway do you want to create? Getting Started with Express Gateway
   create package.json
   create server.js
   create config/gateway.config.yml
   create config/system.config.yml
   create config/models/applications.json
   create config/models/credentials.json
   create config/models/users.json
...
+ [email protected]
added 775 packages in 13.818s

To start expressg, run the following commands:
    cd expressg && npm start

$ cd expressg
$ npm start

This works:
curl http://localhost:8080/ip

Then with a new terminal

$ cd expressg
$ eg users create
? Enter firstname [required]: first
? Enter lastname [required]: last
? Enter username [required]: firstlast
? Enter email: undefined
? Enter redirectUri: undefined
✖ <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST //users/</pre>
</body>
</html>

Simpler Logger policy description

Inside the following page : http://www.express-gateway.io/docs/policies/simple-logger

  1. The description of the simpler logger policy seems wrong to me.

The Simpler Logger policy provides capability for logging with basic message output. the JavaScript [ES6 template literal syntax][es6-template-literal-syntax]

  1. Inside the option reference the link to "ES6 template literal syntax" is rendered over "Javascript" for me on linux with Chrome 60.0.3112.113, maybe a missing space ?

menu disappears when scrolling down content page

steps to reproduce:
(mobile safari)

  1. resize browser to mobile form factor until menu hamburger icon appears
  2. start at top of home page
  3. click hamburger icon and confirm menu appears
  4. click back to page content
  5. scroll down page
  6. click hambuger icon and menu has disappeared as shown below

image

Docs issues

  • log policy is called simple-logger, which is wrong.
  • log policy does not tell that message is printed using INFO as log level.
  • The Admin API needs an introduction paragraph explaining what's going on, why do you need it and what you can do with that

Missing ( in plugin section

Inside the following section : http://www.express-gateway.io/docs/plugins

paragraph Plugin Structure, 2x ( are missing for bullets 2 and 3

_A plugin can contain one or more of the following:

  • Policies ( Policy Reference)
  • Conditions Pipeline and Conditions Reference)
  • Models for new Entities Consumer Management)
  • Custom route handlers_

How to config https

I am using GoDaddy for SSL certification and i got two .crt files.

I also generated .csrfile. And I put all combinations for key and cert but still not working.

https: port: 443 tls: "*.example.com": key: example.com.csr cert: 7e5f2a7e8fa0962d.crt

I got

_tls_common.js:104 c.context.setKey(options.key, options.passphrase); Error: error:0906D06C:PEM routines:PEM_read_bio:no start line at Object.createSecureContext (_tls_common.js:104:17) at TLSSocket.options.SNICallback [as _SNICallback] (/root/BubbleHRWebAppGateway/node_modules/express-gateway/lib/gateway/server.js:60:24) at loadSNI (_tls_wrap.js:113:8) at TLSSocket.oncertcb (_tls_wrap.js:193:3) at TLSWrap.ssl.oncertcb (_tls_wrap.js:452:39)

Can EG provide more detailed documentation for https configuration?

Thank you so much!

Admin: spec for API signatures for new API

  • extend your current OpenAPI spec - adding to what we already have
  • examples of fine grain and course grain manipulation
  • examples of URL structures
  • overall architecture to do client interaction - CLI + web GUI (including JSON schema based validation and typing etc)

List of Must have Doc updates for upcoming 1.4

  • Advanced policy with access to pluginContext
  • API endpoint for service\api -endpoints, policies, schema etc.
  • EG behind proxy
  • EG with redis Sentinels
  • Multi-Auth
  • App name alias support
  • Importing data and building test data set
    • Update CLI example to show how to set keyId keySecret when creating
  • Redis Migration

[Update with whatever is missing]

Put sidecar button for Gitter

It turns out that with a minimal code change we can put a super handy button to open a Gitter channel directly from EG.io — so people can ask question right away while having the documentation opened.

Embed page hierarchy informations

Algolia is not that flexible with selectors for content indexing. We need to reorganise a bit the way we put content into the docs page so their crawler can index the things accordingly.

How to sections for EG

We need an HOW TO section that would be example driven, showing the people how can you so most common scenarios with configurations and results.

Add an html proofer

One of the worst things in the word is to have a 404 link.
We should add an html proofer that could check all our links and make sure they return an
appropriate status code.

There are multiple ready-to-use gems for that.

double check syntax of policies

discrepancies between what the docs say and what we ended up in the gateway.config.yml declarations

for example: in condition and action pairs - name is listed in some examples but it is mandatory?

User experience - Enable search for the website

I've been struggling multiple times searching for concepts and documents around the website. A search implementation is mandatory and Algolia can really be helpful.

They even have a free plan that should suit us perfectly.

RSS feed for a blog

It'll be great to have it, so we can track new publications.

As a side note, in head /atom.xml link is listed, but it resolves to 404

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.