Code Monkey home page Code Monkey logo

amadeus-go's Introduction

Amadeus-go

This projects aims to serve as a wrapper for Amadeus API, which gives flight and hotel information. The hotel however, is not yet ready but the rest of it (overalls to 12 API calls total) is ready. This project was implemented using the following technologies and libraries.

  • go-kit as a microsevice toolkit
  • gRPC as the transport layer
  • protobuf for serialization
  • consul for service discovery
  • redis for caching some stuff such as token

Quickstart

Firstly start by cloning the project into your local computer using the following command:

git clone github.com:meysam81/amadeus-go.git

After doing that, change your directory into the porject's root directory:

cd amadeus-go

Doing the above, you'll be able to make some stuff that is in the Makefile. From the entries that already exists, you surely need to do the following as they are mandatory.

make proto

This command will generate the compiled proto files for you in their right directory. this command has to be entered before going any futher

You should also enter your API_KEY and API_SECRET to the corresponding config files which looks like the following:

{
  "API_KEY": "<API_KEY>",
  "API_SECRET": "<API_SECRET>"
}

You can now run the server using the following command:

make dev_run

Also if you want to test the server, there's a built-in client in cmd/cli/cli.go. To run it use the following command:

make dev_cli

You can also run it in container as there's a Dockerfile in the project's root directory. So runnning the following commands will build and run it.

make build
make up

If you want to stop the container you can enter the following command into your terminal:

make down

Contribute

Feel free to contribute at anytime, PR's are welcomed with pleasure ๐Ÿ˜ƒ

amadeus-go's People

Contributors

meysam81 avatar

Stargazers

 avatar  avatar  avatar

amadeus-go's Issues

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.