Giter Site home page Giter Site logo

appengine-endpoints-namekeepr-java's Introduction

status: inactive

This project is no longer actively developed or maintained.

Project

####Metadata

  • Version: 1.0 April 2013
  • Author: Daniel Acton
  • For any comments, queries or suggestions, feel free to contact Daniel Acton

####Description Namekeepr is a simple web application that is based on Google App Engine and shows a variety of concepts:

  • Google Cloud Endpoints;
  • Datastore;
  • Blobstore;
  • Image Service;
  • HTML5;
  • WebGL;
  • CSS3; and
  • Responsive Design.

The application is aimed at developers wishing to start using Google App Engine. There is a running instance here. To use this source code, download it, modify it (as you wish) and deploy to your own Google App Engine instance.

Project Setup, Installation, and Configuration

All information about Google App Engine projects, e.g. building and running are available online on the Google App Engine developer site.

The source code for this app is an Eclipse Project, so it's easiest to get started using Eclipse. If you don't want to use Eclipse, there are plenty command-line tools available to build and run the app. See the application running in the real-world: here

To get the source code, execute these commands in a working directory of your choice:

 git clone https://github.com/GoogleCloudPlatform/appengine-endpoints-namekeepr-java
 git submodule init
 git submodule update

Getting started

  • Install Java on your development environment so that it can be executed form the commandline
  • Install Eclipse (download the Java version of Eclipse from the Eclipse site)
  • Install the Google Eclipse Plugin - be sure to install the Google App Engine SDK option.
  • Create a new Google Web Application project in Eclipse using this source code as the contents of the project
  • Get the source code from the Github repository into a directory other than your Eclipse project directory, using these commands:
   git clone https://github.com/GoogleCloudPlatform/appengine-endpoints-namekeepr-java 
   git submodule init
   git submodule update
  • Copy the build.sh file and the src/ and war/ directories into your Eclipse project's directory and refresh in Eclipse
  • The application uses Google Gson to manage JSON.
    • Download gson-version.zip (where version is the latest version) from the Google Gson project site
    • From the zip file, extract gson-version.jar and copy it to the war/WEB-INF/lib directory of your Eclipse project.
    • You will also need to add this library to your Eclipse build path
  • The build.sh script uses the Google Closure Templates Javascript compiler.
    • Download closure-templates-for-javascript-latest.zip from the Closure Compiler project site.
    • From the zip file, extract the files SoyToJsSrcCompiler.jar and soyutils.js
    • Create a directory lib in your Eclipse project (at the root)
    • Copy the file SoyToJsSrcCompiler.jar into the lib/ directory of your Eclipse project
    • Copy the file soyutils.js into the war/js directory of your Eclipse project

Deploying

####Running locally

  • Generate the Google Cloud Endpoints Client Library using these instructions
  • Run the script build.sh to generate the code for the templates
  • Run the project as a Web Application

####Deploying to Google App Engine

  • Consult these instructions
  • Sign in using your Google Account
  • Create your own Google App Engine account using the Google App Engine console
  • Create an application in the Google App Engine console, named something unique
  • Change the name of the application in war/WEB-INF/appengine-web.xml and war/WEB-INF/web.xml to the name of the application you just set up in Google App Engine
  • Generate the Google Cloud Endpoints Client Library using these instructions
  • Run the script build.sh to generate the code for the templates
  • Modify war/index.html and update the value of the ROOT variable so that your application points to the live server and not your localhost (where yourappid is the application name you chose above)
var ROOT = 'https://yourappid.appspot.com/_ah/api';
  • In Eclipse, right-click on your project and select "Deploy to Google App Engine"

How to setup the deployment environment

When you create a new Web Application in Eclipse, it will configure your libraries for you. However there are some libraries you will need to download and include yourself. These are Google Gson and Google Closure Templates. The instructions for using these in your project are included in the Getting Started portion of this README.

Contributing changes

  • See CONTRIB.md

Licensing

  • See LICENSE

appengine-endpoints-namekeepr-java's People

Contributors

danholevoet avatar elibixby avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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