Git Product home page Git Product logo

wallee-sample-mobile-backend's Introduction

Sample Wallee Mobile Backend

A simple Java Spring application which acts as a backend for the mobile application. The backend is responsible for:

  • Creating transactions in the wallee platform.
  • Create and refresh the credentials used by the mobile app.

The backend will normally contain more code which is responsible for the business logic of the app than this sample application.

The sample backend can be started locally or on a public reachable instance on the Google App Engine.

Running and Deployment

In any case you need to install Java 8. Depending on the way you want to deploy you may need more configurations and tools installed. We use gradle for managing the dependency, building the application and the deployment of it.

In any case you need to clone the project to run it:

git clone https://github.com/wallee-payment/wallee-sample-mobile-backend.git

Run Locally

// FIXME define how to configure the application locally.

You can run the application locally by either using gradle bootRun resp. ./gradlew bootRun or you can start the com.wallee.mobile.backend.Application from within the IDE.

Run on Google App Engine

The application can be also deployed to a public reachable instance. This can be achieved by following the steps below:

Setup a Google App Engine Project

gcloud components install app-engine-java
  • Initiate the project
gcloud init

Configure API Credentials

The application user ID and the shared secret we put into a meta store. We use

  • WalleeApplicationUserId for the application user ID and
  • WalleeApplicationUserKey for the API key.

You can specify both configurations within the meta store configuration: https://console.cloud.google.com/compute/metadata

Deploy

You are now ready to run commands

  • Stage : ./gradlew appengineStage
  • Deploy : ./gradlew appengineDeploy

wallee-sample-mobile-backend's People

Contributors

thomashunziker avatar

Watchers

Dani avatar James Cloos avatar  avatar  avatar Slobodan Adamovic avatar  avatar  avatar thibault-mambour 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.