Coder Social home page Coder Social logo

nginx-api-gateway's Introduction

Nginx Api Gateway

The primary function of the API gateway is to provide a single, consistent entry point for multiple APIs, regardless of how they are implemented or deployed at the backend. Our API gateway needs to manage existing APIs, monoliths, and applications undergoing a partial transition to microservices.

To understand more about nginx api gateway, visit: Nginx API Gateway Documentation

Project structure

└── certs/ ………………………………………………………………………… Certs file to allow ssl
└── gateway_server/
    ├── reponses/ ……………………………………………………… Subdirectory to record http responses.
    │   └── api_json_errors.conf ……………… Http error responses in JSON format mapped to be used by nginx.
    ├── services/ ……………………………………………………… Subdirectory to record http responses.
    │   └── *-services.conf …………………………… The backend services with location and proxy pass configurations.
    ├── api_gateway.conf …………………………………… Top-level configuration for the API gateway server.
    └── nginx.conf …………………………………………………… Nginx configuration, responsible to import all files.

Running the api gateway

  1. Clone the projec:
    git clone [email protected]:larryrumson/nginx-gateway-api.git
  2. Go to the project paste:
    cd nginx-gateway-api
  3. Building the docker image:
    docker buid -t nginx-gateway-api .
  4. Run the nginx container detached mode:
    docker run -d -p 5000:5000 nginx-gateway-api
    This container will be running in port 5000 and the nginx is going to listen the same port.

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.