Code Monkey home page Code Monkey logo

addaapigateway's Introduction

AddaAPIGateway

Note: Check this article why you need this here: https://rynaardb.com/posts/2019/02/23/microservices-with-vapor.html

For Test this Vapor 4 Api Gateway Please download this two Vapor 4 App

  1. https://github.com/AddaMeSPB/AddaMeAuth (Database i used: MongoDB) < This for Auth i am using login via mobile number
  2. https://github.com/AddaMeSPB/EventEngine (Database i used: MongoDB) < Event CURD

Before Run Apps you much need to setup this .env xcode edit schema Environment variables For API need

  1. JWKS={}
  2. AUTH_URL="http://10.0.1.3:1010/v1"
  3. EVENTS_URL="http://10.0.1.3:9090/v1"

AddaMeAuth 0. TWILIO_ACCOUNT_ID AND TWILIO_ACCOUNT_SECRET for AddaMeAuth app only

For Rest of

  1. JWKS={}
  2. MONGO_DB_DEV=""

Routes you can always check routes

swift run Run routes

+--------+-----------------------+
| GET    | /                     |
+--------+-----------------------+
| GET    | /hello                |
+--------+-----------------------+
| POST   | /v1/auth/login        |
+--------+-----------------------+
| POST   | /v1/auth/verify_sms   |
+--------+-----------------------+
| POST   | /v1/auth/refreshToken |
+--------+-----------------------+
| POST   | /v1/events            |
+--------+-----------------------+
| GET    | /v1/events            |
+--------+-----------------------+
| GET    | /v1/events/:events_id |
+--------+-----------------------+
| PUT    | /v1/events/:events_id |
+--------+-----------------------+
| DELETE | /v1/events/:events_id |
+--------+-----------------------+

๐Ÿ† Credits

This package is developed and maintained by Saroar [Saroar](https://github.com/saroar.

๐Ÿ“„ License

This package is open-sourced software licensed under the MIT license

addaapigateway's People

Contributors

alifspb avatar saroar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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