Giter VIP home page Giter VIP logo

freelancer-gateway's Introduction

API Gateway Microservice for FreelancerApp

  • The gateway microservice is responsible for managing requests that comes from the frontend.
  • Every request that comes from the frontend must pass through the API Gateway Service.
  • The communication style used in the service is the Request/Response pattern.
  • The gateway service is also responsible for request validation. It adds the json web token to the cookie session and checks if the token in a request is valid.
  • All client side errors from other microservices are sent to the gateway service. The gateway service sends these errors to the client.
  • Server side errors from the gateway microservice is sent to elasticsearch and can be viewed on kibana.
  • Gateway service uses these tools as the main tools
    • Shared library
    • NodeJS
    • Express
    • Typescript
    • Axios
    • Redis
    • Elasticsearch
    • Json web token
    • SocketIO
    • SocketIO client
  • There are other packages that are used.
  • You can start the service with npm run dev.

Create docker images

  • You can create your own docker image from this microservice.
  • Create an account on hub.docker.com or login if you already have one.
  • Make sure to login on your terminal as well.
  • Steps to build and push your image to docker hub
    • docker build -t <your-dockerhub-username>/freelancer-review .
    • docker tag <your-dockerhub-username>/freelancer-review <your-dockerhub-username>/freelancer-review:stable
    • docker push <your-dockerhub-username>/freelancer-review:stable

freelancer-gateway's People

Contributors

datz0512 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.