Skip to content

osintegrators/JavaSpringGranny

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaSpringGranny

Granny's Addressbook with Java + Spring MVC + PostgreSQL Install database

Install the database.

  • NOTE: You may need to setup trusted authentication for localhost. This is done by editing the pg_hba.conf file.
 sudo apt-get install postgresql-9.1
  • make a user called postgres and Start the postgresql server. Documentation regarding this can be found here
  • Create a database called granny by following command
     CREATE DATABASE granny;
  • Create a user/role called granny by following command
     CREATE USER granny WITH password 'granny';
  • Grant all privileges to the granny user/role by following command
     GRANT ALL PRIVILEGES ON DATABASE granny to granny; 

Checkout Project from git

  1. Install git sudo apt-get install git
  2. Do a git clone https://github.com/osintegrators/JavaSpringGranny.git
  3. Open up your IDE ( Eclipse / STS preffered ) and go to File -> Import -> General -> Existing projects into workspace

Build

  1. Perform a Project -> Clean
  2. Right click on the pom.xml and do a Maven -> clean, and a Maven -> install.
  3. Right click on Project and Run As -> Run On server.
  4. You might need to create a new server environment.

Run

  • This project can be deployed on any of the following
    Tomcat
    vFabric tcServer
    JBoss Application Server
  1. After you create a server, Deploy the project on the server.
  2. Note: If your IDE does not have the facility to run on an server from within, you can do a mvn package from the command line and deploy the .war file directly on an external server
  3. Browse to http://localhost:8080/JavaSpringGranny/

License

Copyright (c) 2012 Open Software Integrators

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Granny's Addressbook with Java + Spring MVC + PostgreSQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages