Introduction of CategoLJ2 #jjug_ccc

3,704 views

Published on

JJUG CCC 2014 SpringのLT資料です。

https://github.com/making/categolj2-backend
の説明

0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
3,704
On SlideShare
0
From Embeds
0
Number of Embeds
678
Actions
Shares
0
Downloads
11
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide

Introduction of CategoLJ2 #jjug_ccc

  1. 1. Intoroduction of CategoLJ2 @making (Toshiaki Maki) http://blog.ik.am JJUG CCC 2014 Spring LT 2014/05/18
  2. 2. What is CategoLJ2 Originally, Categorizer written in Lisp (since 2009) Rewrite with Java (2011) 2nd version (2013) Used as a simple blogware History: http://blog.ik.am/#/entries/193 https://github.com/making/categolj2-backend
  3. 3. Featuare Simple! Portable! RESTful!
  4. 4. Used Technologies Java8 & Spring 4 Spring MVC Spring Security OAuth Spring Data JPA & JPA 2.1 (Hibernate) Hibernate Search Flyway Backbone.js
  5. 5. Normal RESTful Architecture Resource Server Authorization Server Client OAuth API Resource API access token
  6. 6. CategoLJ2 Architecture All in One jar file Resource Authorization Client (Admin) Embedded Tomcat Client (Frontend) Flyway Hazelcast RDB (H2 or MySQL)
  7. 7. CategoLJ2 Architecture All in One jar file Resource Authorization Client (Admin) Embedded Tomcat Client (Frontend) Flyway Hazelcast RDB (H2 or MySQL)
  8. 8. CategoLJ2 Architecture All in One jar file Resource Authorization Client (Admin) Embedded Tomcat Client (Frontend) Flyway Hazelcast RDB (H2 or MySQL) Resource Owner Password Credentials Grant
  9. 9. Technology Stack Client(Admin) Resource Server Backbone.js Handlebars Spring Spring MVC Jackson2 Spring Data JPA Hibernate Embedded Tomcat Java 8
  10. 10. Admin Console
  11. 11. Admin Console
  12. 12. Admin Console
  13. 13. Admin Console
  14. 14. Admin Console
  15. 15. (Default) Frontend
  16. 16. Quick Launch wget https://github.com/ making/categolj2-backend/ releases/download/0.12.0/ categolj2-backend.jar java -jar categolj2-backend.jar Download & Run!
  17. 17. Default Behavior Use file based H2 database DB migration using Flyway No need to set up any middleware
  18. 18. See Document https://github.com/making/ categolj2-backend#quick- launch
  19. 19. Scalable java -jar xxx.jar -httpPort 8081 port: 8080 port: 8081 java -jar xxx.jar -httpPort 8080 LB Hazelcast Hazelcast RDB Distributed Cache multicast
  20. 20. Scalable java -jar xxx.jar - java -jar xxx.jar - LB Hazelc ast Hazelc ast RDB Hazelc ast Hazelc ast Hazelc ast Hazelc ast Hazelc ast Hazelc ast
  21. 21. Write your own client! All in One jar file Resource Authorization Client (Admin) Embedded Tomcat Client (Frontend) Flyway Hazelcast Your Client (Frontend) REST API
  22. 22. Write your own client! All in One jar file Resource Authorization Client (Admin) Embedded Tomcat Client (Frontend) Flyway Hazelcast Your Client (Frontend) REST API JavaScript, JavaFX, JSF, Other langs …
  23. 23. client written in Go lang https://github.com/making/categolj2-cli Command Line Interface for CategoLJ2 $ catego gets $ catego get {entryId} $ catego post hogehoge.md $ catego put {entryId}.md
  24. 24. REST API Document https://github.com/making/ categolj2- backend#backend-apis Comming soon… using Swagger
  25. 25. Replace your blog!
  26. 26. with “はじめてのBootstrap” http://amzn.to/hajiboo
  27. 27. Thank you

×