Code Monkey home page Code Monkey logo

solutions-mobile-shopping-assistant-backend-java's Introduction

Mobile Shopping Assistant Java Backend

Copyright

Copyright 2013 Google Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Disclaimer

This sample application is not an official Google product.

Supported Platform and Versions

This sample source code and project is designed to work with Eclipse. It was tested with Eclipse 3.8 and Google App Engine SDK 1.7.7.1.

Overview

Mobile Shopping Assistant Java Backend demonstrates how to build a mobile backend that will power Android and iOS native applications and expose API using Google Cloud Endpoints.

Prerequisite

  1. Eclipse with Google Plugin for Eclipse version 3.2.3 or newer.

  2. Google App Engine SDK version 1.7.7.1 or higher.

Developer Guide using Eclipse

The repository does not include jars. Therefore when you open the project in Eclipse you will initially see errors. After following the steps below, all errors should be gone.

  1. Follow Android documentation to install the helper libraries and to copy the gcm-server.jar into war/WEB-INF/lib directory.

  2. If you see errors about App Engine not being configured correctly, go to Project Properties->Google->App Engine and unselect 'Use Google App Engine' and click OK. Then go to the same dialog again, select 'Use Google App Engine' and make sure that the selected version of SDK is 1.7.7.1 or newer.

  3. Open war/WEB-INF/appengine-web.xml and enter your app id within application XML element.

  4. Open MobileAssistant-AppEngine/src/com.google.sample.mobileassistant/ApiKeysAndIds.java and enter your GCM_API_KEY, ANDROID_CLIENT_ID, IOS_CLIENT_ID, WEB_CLIENT_ID and AUDIENCE. Follow Android documentation to obtain GCM_API_KEY (Note: In the 'Enabling the GCM Service' step choose 'Google Cloud Messaging for Android') and follow the Cloud Endpoints documentation to obtain the 3 Client IDs. For Android Client ID the package name is 'com.google.sample.mobileassistant'. For iOS Client ID the bundle is 'com.google.sample.mobileassistant'.

  5. Select MobileAssistant-AppEngine project in "Project Explorer" and from Google context menu select Generate Cloud Endpoint client library.

  6. Select MobileAssistant-AppEngine project and from Google context menu select Deploy to App Engine.

  7. Follow steps in README.md in MobileAssistant-Data directory to import sample data to the deployed backend.

Now you are ready to use Mobile Shopping Assistant Android client or iOS Client with the mobile backend that you deployed. Follow the steps in README.md for Android and iOS client.

solutions-mobile-shopping-assistant-backend-java's People

Contributors

go-zz-ogle-zz-clo-zz-udsolu-zz-tions avatar ravimadasu2007 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.