Giter VIP home page Giter VIP logo

microservice-api-gateway-database's Introduction

Microservice in Kong

Prerequisites

  • VS Code installed
  • Postman installed
  • Docker Desktop installed and running on system

VS Code Settings

  • Open VS Code, go to settings, and ensure Files: Eol is set to \n
  • In the bottom right corner of VS Code on the status bar, ensure 'Select End of Line Sequence' is set to LF

Basic Installation

  • Clone this repository into a local directory
  • Open docker-compose.yml and enter a username and password of your choice where prompted under environment; five total fields should be changed
  • Open a terminal in the directory and run docker-compose up --build to set up the microservice
  • Open a browser and enter localhost:8002 to access the Kong dashboard

Automating Kong endpoints

  • Open a new terminal and run cd Script
  • Run docker-compose up --build to run a script that automatically creates basic endpoints for the microservice in Kong
  • The container should exit with code 0 and no errors, indicating that the script has run successfully
  • Access the Kong dashboard at localhost:8002 and observe that the endpoints have been created

Testing

  • Open Postman and import Microservice.postman_collection from this directory
  • Test the microservice by creating, reading, and deleting customers from the database using the endpoints provided

microservice-api-gateway-database's People

Contributors

cmoroney-iw avatar

Watchers

 avatar

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.