Git Product home page Git Product logo

cloud-failover's Introduction

Cloud Failover Service

Application agnostic service that resides between end users and cloud providers to provide high availability and automatic failover to applications without code changes or vendor lockin.

Starting the Service for Development

  1. Download the repo
  2. Set the following environmental variables
    1. Set AWS_ACCESS_KEY to your access key from AWS
    2. Set AWS_SECRET_KEY to your secret key from AWS
    3. Set AZURE_AUTH_LOCATION to the path of your azureauth.properties file
    4. Set GCP_PROJECT to your GCP project name
    5. Set GOOGLE_APPLICATION_CREDENTIALS to the path of your GCP credentials file
    6. (Optional) Set MULTICLOUD_FAILOVER_MONGO_CONN_STR to the connection string of your Mongo instance. If unspecified it will default to localhost on port 27017
  3. Open the server folder in IntelliJ and run the bootRun task
  4. Open the react-ui folder in a terminal and run npm start
  5. During development, the frontend will run on port 3000 and the backend will run on port 8080.

Building the Service

  1. Open the root of the repo in a terminal and run gradle build. This will built the frontend, copy the built files to the backend, build the backend as a single jar with all dependencies, and copy the jar to the root of the repo.
  2. To run the service, run java -jar <name_of_built_jar_file>.
  3. The service will run on port 8080 when started.

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.