GithubHelp home page GithubHelp logo

ishan27g / nginx-micro-apigw Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.25 MB

Nginx as https api gateway for nodejs microservices

License: GNU General Public License v3.0

Dockerfile 21.19% JavaScript 53.15% Shell 25.67%

nginx-micro-apigw's Introduction

Node and npm should be already installed on server

  1. Clone this repo and cd into it
  2. Generate ssl certificate in repo root -> openssl req -nodes -new -x509 -keyout server.key -out server.cert
  3. Follow Nginx/nginx.txt to install and setup nginx
  4. Copy generated ssl certs to -> /etc/nignx/ssl/ (or reconfigure path in nginx configuration file)
  5. Copy Nginx/nginx-configuration file. Restart nginx -> /etc/nginx/sites-available/ , rename as 'default' ;
  6. Once nginx is running, go to machines IP and verify -> https://server-IP should show unsafe warning but can proceed to nginx welcome page (as server used self signed ssl)
  7. Install micro-services from scripts/ dir -> ./installServer.sh
  8. Start node-express microservices -> ./startServer.sh
  9. Following endpoints should now be accessible -> https://server-IP |-> /write/user |-> /sync/user |-> /register/user

nginx-micro-apigw's People

Contributors

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