Jbilling grails project setup with postgreSQL database on Linux

Posted By : Santosh Singh | 09-Mar-2015

Jbilling Setup


Install PostGresSQL latest version using

 

sudo apt-get install postgresql

CONFIGURING POSTGRESQL for JBilling

 

Edit the PostgreSQL pg_hba.conf file and change connection types:

Normaly file found at /etc/postgresql/<9.0>/main/pg_hba.conf

 

# Database administrative login by Unix domain socket

local   all             postgres                                peer

# "local" is for Unix domain socket connections only

local   all             all                                     trust

# IPv4 local connections:

host    all             all             127.0.0.1/32            trust

# IPv6 local connections:

host    all             all             ::1/128                 md5

 

Save this file


Chagne permission of the file

 

sudo chmod 777 pg_hba.conf

Restart postgresql service

 

sudo service postgresql restart

Connect to PostgreSQL and create the test user and database.

 

$ sudo su postgres
$ psql	

You must have configured with PostgreSQL a 'jbilling' user and an empty 'jbilling_test' database.


Once you are logedin into database

 

CREATE ROLE jbilling WITH LOGIN SUPERUSER CREATEDB CREATEROLE PASSWORD 'jbilling';
CREATE DATABASE jbilling_test WITH OWNER jbilling;

Restart postgresql service

 

sudo service postgresql restart

DataBase is now ready to run with grails jbilling project Importing project from github Get JBilling grails prroject from GitHub https://github.com/mosabsalih/jBilling.git Project URL :- https://github.com/mosabsalih/jBilling Go to your project folder and change the permission of the folder liquidbase-2.0.5

sudo chmod 777 liquidbase-2.0.5

 

Run Grails project but follow these steps before runing application

 
grails clean
grails compile
grails prepare-test
grails run-app

 

Default UserID :- admin

Default Password :- 123qwe

 

For more Information Click Here. For more blogs keep visiting us .

 

Thanks

 

 

About Author

Author Image
Santosh Singh

Santosh is a seasoned software developer working on JAVA, J2EE, Spring, Grails, HTML, JavaScript, jQuery, Ajax, AngularJS, SQL, developed 3+ applications. He loves to play soccer and reading books in free time.

Request for Proposal

Name is required

Comment is required

Sending message..