Jbilling Installation
![Jbilling Installation Jbilling Installation](https://linoxide.com/wp-content/uploads/2016/03/3.png)
Postgresql setup for Jbilling. Posted by Ankit Gupta Last Updated: 17-Mar-15. Jbiling is an open source project written in grails which provides an enterprise billing soultion as well as a way to integrate it with any other project. Jbilling supports many types of databases like mysql,oracle,postgresql etc. In this blog I am going.
Browse filesImport jbilling community edition
Showing 1,486 changed files with 201,730 additions and 0 deletions.
@@ -0,0 +1,33 @@ | |
# build artifacts | |
build/ | |
target/ | |
resources/ | |
image/ | |
changelog | |
# temp files | |
activemq-data/ | |
out/ | |
tmp/ | |
logs/ | |
*.log | |
*.log.* | |
*~ | |
.ant-targets*.xml | |
TEST*.xml | |
*.jasper | |
# external libraries | |
libs/ | |
# project files | |
.idea/ | |
*.iml | |
.project | |
.classpath | |
.settings | |
# local git configuration | |
.gitattributes | |
![Community Community](https://linoxide.com/wp-content/uploads/2015/12/110.png)
Oops, something went wrong.
@@ -0,0 +1,72 @@ | |
jBilling | |
**Requirements:** | |
* Java 6+ | |
* Grails 1.3.4 | |
* PostgreSQL 8+ *(required for testing, other runtime databases are supported)* | |
To run jBilling from source you will need to have Java 6+ and Grails 1.3.4 installed. To install grails, download version 1.3.4 from the [Grails Archive](http://www.grails.org/download/archive/Grails) and follow the installation instructions for your operating system. | |
[Java](http://www.oracle.com/technetwork/java/javase/downloads/index.html) and [PostgreSQL](http://www.postgresql.org/) can be downloaded an installed by visiting the vendor's websites, or in linux environments by using the package manager (apt-get or yum). | |
Cloning the Source Code from GitHub | |
----------------------------------- | |
Install [Git](http://git-scm.com/download/). | |
Clone the repository from `git@github.com:emilc/jBilling.git` | |
<pre><code>clone git@github.com:emilc/jBilling.git jbilling-community</code></pre> | |
Configuring PostgreSQL | |
---------------------- | |
To run jBilling with the out-of-box reference database, you must have PostgreSQL installed and configured with a **'jbilling'** user and an empty **'jbilling_test'** database. The setup scripts also expect that the user will allow local connections without a password. | |
Edit the PostgreSQL pg_hba.conf file and change the 'local' and 'IPv4' localhost connection types: | |
<pre><code># 'local' is for Unix domain socket connections only | |
local all all trust | |
#IPv4 local connections: | |
host all all 127.0.0.1/32 trust | |
</code></pre> | |
Connect to PostgreSQL and create the test user and database. | |
<pre><code>CREATE ROLE jbilling WITH LOGIN SUPERUSER CREATEDB CREATEROLE PASSWORD 'jbilling'; | |
CREATE DATABASE jbilling_test WITH OWNER jbilling; | |
</pre></code> | |
Setup | |
----- | |
Run the grails `compile` target to compile the jBilling source code, then run the `prepare-test` target to load the reference database and prepare all the required resources. | |
<pre><code>grails compile | |
grails prepare-test | |
</pre></code> | |
*The grails compile target may halt with a compiler error on some environments, running compile a second time usually resolves the issue.* | |
Running from Source | |
------------------- | |
**Windows**: ``run-app.bat`` | |
**Linux/Mac**: ``./run-app.sh`` | |
@@ -0,0 +1,16 @@ | |
#Grails Metadata file | |
#Tue Jun 28 10:33:10 MDT 2011 | |
app.grails.version=1.3.4 | |
app.name=jbilling | |
app.servlet.version=2.4 | |
app.version=community-3.0-final | |
plugins.cookie=0.2 | |
plugins.hibernate=1.3.6 | |
plugins.include=0.3 | |
plugins.jquery=1.4.4.1 | |
plugins.jquery-ui=1.8.7 | |
plugins.log4j-xml=0.2 | |
plugins.remote-pagination=0.2.4 | |
plugins.spring-security-core=1.0.1 | |
plugins.tomcat=1.3.6 | |
plugins.webflow=1.3.6 |
@@ -0,0 +1,55 @@ | |
# build dirs | |
build.dir=${basedir}/target | |
build.classes.dir=${basedir}/target/classes | |
build.resources.dir=${basedir}/resources | |
build.test.dir=${build.dir}/test | |
build.test-results.dir=${build.dir}/test-reports | |
# source directories | |
source.dir=${basedir}/src | |
source.java.dir=${source.dir}/java | |
source.groovy.dir=${source.dir}/groovy | |
source.grails.conf=${basedir}/grails-app/conf | |
source.descriptor.dir=${basedir}/descriptors | |
source.designs.descriptor.dir=${source.descriptor.dir}/designs | |
source.hibernate.descriptor.dir=${source.descriptor.dir}/hibernate | |
source.mediation.descriptor.dir=${source.descriptor.dir}/mediation | |
source.resources.descriptor.dir=${source.descriptor.dir}/resources | |
source.rules.descriptor.dir=${source.descriptor.dir}/rules | |
source.spring.descriptor.dir=${source.descriptor.dir}/spring | |
source.torque.descriptor.dir=${source.descriptor.dir}/torque | |
source.web.descriptor.dir=${source.descriptor.dir}/web | |
source.cs.dir=${basedir}/cs | |
source.documentation.dir=${basedir}/documentation/user/docs | |
source.sql.dir=${basedir}/sql | |
source.test.dir=${basedir}/test | |
source.test.grails-integration.dir=${source.test.dir}/integration | |
source.test.integration.dir=${source.test.dir}/org-integration | |
source.test.unit.dir=${source.test.dir}/unit | |
source.test.ws.dir=${source.test.dir}/ws | |
source.lib.dir=${basedir}/lib | |
source.rules.dir=${source.descriptor.dir}/rules | |
testlibs.dir=${basedir}/testlibs | |
junit.dir=${testlibs.dir}/junit | |
easymock.dir=${testlibs.dir}/easymock | |
drools.dir=${testlibs.dir}/drools | |
jasperreports.dir=${testlibs.dir}/jasperreports | |
velocity.dir=${testlibs.dir}/velocity | |
quartz.dir=${testlibs.dir}/quartz | |
digester.dir=${testlibs.dir}/digester | |
spring.dir=${testlibs.dir}/spring | |
# external libraries used to run the 'official' release generation targets | |
# not included in the standard jbilling release, developers download these libraries locally | |
torque.home.dir=/opt/torque-gen-3.3 | |
image.source.dir=${basedir}/image |
Ubuntu Jbilling Installation
Please sign in to comment.