Git Product home page Git Product logo

backbone-lab's Introduction

Backbone Labs

This project will take you through the usage of backbone.js. To better explain and to demonstrate the best practices for SPA, we have used RequireJS for dependency management at ui layer. Along with that for the time being we have created a restful web service using spring 3.2 mvc. In future we will be adding more such services and ui components.

Components:

  • web - backbone-lab web context
  • studentservice - JAX-RS web service

Prerequisites

You need the following packages to be installed:

  • Java 7
  • Tomcat 7
  • Maven 3.0.5
  • Git

Building from source

After completing the prerequisites, you can follow the instructions to build the project.

check out sources

git clone https://github.com/tjagadeesh/backbone-lab.git

once you clone the project change the tomcat webapp path in your parent pom.xml. So that your wars will be get copied to webapp.

compile and test, build all wars

mvn clean install

One successfull built the project, you can start tomcat to test.

##studentservice Testing

###GET

url:http://localhost:8080/studentservice/student, http://localhost:8080/studentservice/student/1
request header:Accept:application/json

response body:
[ 
  {
      	 "id": 1,
      	 "rollNo": "200130364",
      	 "name": "Satish Kumar",
      	 "standard": "1st"
  	  }
]

###POST url:http://localhost:8080/studentservice/student request header:Accept:application/json, Content-Type:application/json request body: { "rollNo": "200130364", "name": "Satish Kumar", "standard": "1st" }

response body:true

###PUT url:http://localhost:8080/studentservice/student/1 request header:Accept:application/json, Content-Type:application/json request body: { "id":1, "rollNo": "200130364", "name": "Satish Kumar", "standard": "1st" }

    response body:true

###DELETE url:http://localhost:8080/studentservice/student/1 request header:Accept:application/json

    response body:true

Contributing

Pull requests are welcome.

Staying in touch

License

backbone-lab's People

Contributors

jagadeesht avatar karasatishkumar avatar

Watchers

 avatar  avatar  avatar

Forkers

dalalsunil1986

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.