• Stars
    star
    126
  • Rank 283,544 (Top 6 %)
  • Language
    Java
  • Created over 10 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Use Spring Data REST to upload, store, and manage pictures

Build Status

Note
This snapshot copy is captured from SpringOne 2GX 2015 in Washingon, D.C.

Spring-a-Gram is a demonstration of the Spring stack used to upload and view pictures.

Spring Data REST makes it incredibly simple to define and export data store entities. What does this mean? You declare the POJOs that are stored in your database. In this case, we are using a JPA, in-memory data store. (Spring Data REST supports other data stores as well). You then define a related repository interface. Spring Data REST takes it from there to create a hypermedia-driven, RESTful interface using Spring MVC that lets you create, read, update, and delete data.

This sample application demonstrations how declaring a backend aimed at storing image data can make it as simple as possible to upload pictures and then turn around and display them on a website. This opens the door to other front ends, like an iOS or Android app.

If you want to run it right now, you need:

To download and run:

  1. git clone [email protected]:gregturn/spring-a-gram.git to grab a local copy (or clone your own fork).

  2. bower install to pull down javascript libraries. If you get prompted about jQuery, accept the version specified in bower.json

  3. mvn clean spring-boot:run

Note
To deploy a copy to PWS, you need a Java 8 build pack. Execute cf push spring-a-gram -p target/spring-a-gram-0.1.0.jar -b https://github.com/spring-io/java-buildpack.git and you’ll be set.

This should get the app started courtesy of Spring Boot. Now you can traverse the app from different view points.

  • From the command line, interrogate the API with curl localhost:8080/api. Navigate to the other links.

  • From the desktop, visit http://localhost:8080 to see the Desktop version of the web experience.

  • From a mobile device, visit http://localhost:8080 and see a different flow, optimized for the smaller real estate.

More Repositories

1

asciidoctor-packt

Backend and theme to convert Asciidoctor files into Packt Publishing OpenOffice doc
HTML
44
star
2

task-manager-app

After reading http://www.programming-free.com/2014/07/crud-springmvc-restful-webservices-angularjs.html, I rewrite the code using Spring Data REST to simplify
CSS
22
star
3

spinnaker-config

JavaScript
14
star
4

packt-book-template

Got a contract to write for Packt? Use this template to set up your manuscript for Asciidoctor
Shell
9
star
5

spring-monitor

Sample app that demonstrates Spring Boot+JS by monitoring log files and dynamically turning red/green based on activity
Groovy
9
star
6

learning-spring-ws

Tinker around with Spring WS
Java
8
star
7

debug-your-spring-boot-app

Source code for my 2015 webinar
Java
7
star
8

my-tech-book-manuscript

Template for baking an EPUB/MOBI/paperback technical tome
Ruby
6
star
9

grails-real-world

Sample code for SpringOne 2GX 2013 "Case Study: Grails in the Real World"
Groovy
3
star
10

spring-data-jdbc-demo

Java
3
star
11

hateoas-demo

Java
3
star
12

tut-spring-security-and-angular-js

Spring Security and Angular JS :: A tutorial based on the 6-part blog series by Dave Syer
3
star
13

spring-cloud-canary

Java
2
star
14

springone-2021-live-coding-spring-data-queries

Java
2
star
15

embeddable-spring-data-rest

An example of using Spring Data REST with an embeddable subtable
Java
2
star
16

spring-data-jpa-observability

Java
2
star
17

spring-data-query-rewriter

Java
2
star
18

finance

Code to help analyze financial data
Java
2
star
19

learning-spring-boot-config-repo

Spring Cloud Config repo for Learning Spring Boot 2nd Edition
2
star
20

r2dbc-demo

Demo given to Atlanta JUG in 2020
Java
2
star
21

spring-data-rest-client

JavaScript
2
star
22

todo

Demo of Spring Data REST's metadata features
Java
1
star
23

docbook2asciidoctor

Convert existing docbook reference manual to asciidoctor
Groovy
1
star
24

spring-data-build-props

1
star
25

asciidoctor-epub3-mac-for-kindle-bug

Capture a bug for Mac for Kindle and asciidoctor-epub3
Shell
1
star
26

toolbox

Collection of scripts used to do my job
Python
1
star
27

spring-social-ecobee

Spring Social extension to talk to an Ecobee thermostat
Java
1
star
28

hateoas-with-webflux

Java
1
star
29

monoid

Code based on Scalaz presentation by Nick Partridge
Scala
1
star
30

twitter-clone

Toy application to experiment with mixing pika and Spring Python
1
star
31

springboot2-hateoas-jpa-mapstruct

TSQL
1
star
32

Learning-Spring-Boot-2.0-Second-Edition

Learning Spring Boot 2.0, Second Edition, published by Packt.
1
star
33

spring-crawler

App to crawl your website and collect link information
Groovy
1
star