Java, NoSQL, SQL, REST API and other scary words

Simple Chat Application (REST API)

Introduction

This is a simple restfull chat application to send messages between friends. Key features:

  • Register to the System
  • Login
  • Send/Approve Friendship Request
  • View friends list
  • Ignore User
  • Send Message
  • Delete account Minor features:
  • Auto update messages and friends lists
  • Security by Token

Link to the project upon request.

Short Demo

Architecure

Simple Chat is a 3 tier Web application:

  • The DB has been developed on MySQL Workbench 6.3.
  • As a Backend I used Apache Tomcat with Java and JDBC, Server responds with XML or JSON (I used both format to show the difference, but JSON is preferrable for AngularJS) by HTTP GET.
  • The Front End is AngularJS with JavaScript, which provides great flexibility (I didn’t use bootstrap library and all CSS file is a custom one).

High level application architecture

arch

QA

I prepared UI automation tests automation using Selenium, Java(Junit) and Ant library for displaying test suites results. This is a separate application:https://bitbucket.org/akiselev87/testsuite/wiki/Home

Database model

db

If somebody would like to reproduce my application for educational purposes, then I would recommend next resources:

RESTful Web Services. Introduction

http://www.tutorialspoint.com/restful/restful_quick_guide.htm

Angular JS documentation

https://docs.angularjs.org/guide/scope

http://viralpatel.net/blogs/angularjs-controller-tutorial/

AngularJS $http Service

http://tutorials.jenkov.com/angularjs/ajax.html

AngularJS menu implementation

http://tutorialzine.com/2013/08/learn-angularjs-5-examples/

Angular list implementation

http://codepen.io/brian-baum/pen/BqEyL

XML data format

http://www.w3schools.com/xml/xml_applications.asp

http://help.dottoro.com/ljjslhit.php

This one will help you to generate id for your session

http://stackoverflow.com/questions/41107/how-to-generate-a-random-alpha-numeric-string

Advertisements
Standard

One thought on “Simple Chat Application (REST API)

  1. Pingback: Test Suites for Simple Chat Application (REST API) | Alexey Kiselev

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s