egov smartcity suite

2025-12-07 0 992

eGov SmartCity eGovernance Suite

eGovernments Foundation transforms urban governance with the use of scalable and replicable technology solutions that enable efficient and effective municipal operations, better decision making, and contact-less urban service delivery.

Our comprehensive software products enable Governments to put their resources to efficient use by minimising overheads. We also help bring in transparency, accountability and citizen centricity in the delivery of Government services.

eGovernments Foundation has been in the forefront of implementing eGovernance solutions since 2003. Our products have been serving over 325 ULBs across the country. Our time tested products have impacted the ULBs in a large way. We have also been involved in several eGovernance initiatives in the country.

Our primary business motivator is to increase the footprint of eGovernance across the country and help adoption in as many ULBs as possible. Going opensource with our products is a measure in this direction. It also gives us the ability to tap into the immense talent pool in India for strengthening and improving our cities. Open source also blends well with our ethical fabric of being open and transparent in our business.

Issue Tracking

Report issues via the eGov Opensource JIRA.

License

The eGov suit is released under version 3.0 of the GPL.

Powered By

     

User Guide

This section contains steps that are involved in build and deploy the application.
FAQ related to various deployment and development issues are discussed here

Setup with auto installer

  • Clone the eGov repository (development is done on the develop branch).
$ mkdir -p ${HOME}/egovgithub && cd egovgithub
$ git clone  -b develop --single-branch  https://*gith*u*b.com/egovernments/egov-smartcity-suite.git
  • First time setup which will install the stacks, build the source code, and deploys the artifact to Wildfly
$ cd ${HOME}/egovgithub/egov-smartcity-suite && make all

  • To install the prerequisites Phoenix stacks
$ cd ${HOME}/egovgithub/egov-smartcity-suite &&  make install
  • To build the source code base
$ cd ${HOME}/egovgithub/egov-smartcity-suite && make build
  • To deploy the artifact to WILDFLY
$ cd ${HOME}/egovgithub/egov-smartcity-suite && make deploy

Manual Setup Instruction

Prerequisites

  • Install maven v3.2.x
  • Install PostgreSQL v9.4
  • Install Elastic Search v2.4.x
  • Install Jboss Wildfly v10.x
  • Install Git 2.8.3
  • Install JDK 8 update 112 or higher

Database Setup

  1. Create a database and user in postgres
  2. Create a schema called generic
  3. Execute ALTER ROLE <your_login_role> SET search_path TO generic,public;

Elastic Search Setup

Elastic seach server properties needs to be configured in elasticsearch.yml under <ELASTICSEARCH_INSTALL_DIR>/config

## Your local elasticsearch clustername, DO NOT use default clustername
cluster.name: elasticsearch-<username>
## This is the default port
transport.tcp.port: 9300

NB: <username> user name of the loggedin system, enter the below command in terminal to find the username.

$ id -un

Building Source

  1. Clone the eGov repository (development is done on the develop branch.
$ mkdir egovgithub
$ cd egovgithub
$ git clone https://*gith*u*b.com/egovernments/egov-smartcity-suite.git
$ git checkout develop
  1. Change directory to <CLONED_REPO_DIR>/egov/egov-config/src/main/resources/config/ and create a file called egov-erp-<username>.properties and enter the following values based on your environment config.
##comma separated list of host names 
elasticsearch.hosts=localhost
elasticsearch.port=9300
elasticsearch.cluster.name=elasticsearch-<username>

If required, you can override any default settings available in /egov/egov-egi/src/main/resources/config/application-config.properties by overriding the value in egov-erp-<username>.properties.

  1. Change directory back to <CLONED_REPO_DIR>/egov

  2. Run the following commands, this will cleans, compiles, tests, migrates database and generates ear artifact along with jars and wars appropriately

mvn clean package -s settings.xml -Ddb.user=<db_username> -Ddb.password=<db_password> -Ddb.driver=org.postgresql.Driver -Ddb.url=<jdbc_url>

Redis Server Setup

By default eGov suit uses embedded redis server (work only in Linux & OSx), to make eGov suit works in Windows OS or if you want to run redis server as standalone then follow the installation steps below.

  1. Installing redis server on Linux
sudo apt-get install redis-server
  1. Installing redis server on Windows :- There is no official installable available for Windows OS. To install redis on Windows OS, follow the instruction given in https://ch*ocola**tey.org/packages/redis-64

  2. Once installed, set the below property in egov-erp-override.properties or egov-erp-<username>.properties.

## true by default
redis.enable.embedded=false

to control the redis server host and port use the following property values (only required if installed with non default).

## Replace <your_redis_server_host> with your redis host, localhost by default
redis.host.name=<your_redis_server_host>
## Replace <your_redis_server_port> with your redis port, 6379 by default
redis.host.port=<your_redis_server_port>

Deploying Application

Configuring JBoss Wildfly
  1. Download and unzip the customized JBoss Wildfly Server from here. This server contains some additional jars that are required for the ERP.
  2. In case properties needs to be overridden, edit the below file (This is only required if egov-erp-<username>.properties is not present)
<JBOSS_HOME>/modules/system/layers/base/

org
└── egov
  └── settings
    └── main
        ├── config
        │   └── egov-erp-override.properties
        └── module.xml
  1. Update settings in standalone.xml under <JBOSS_HOME>/standalone/configuration
  • Check Datasource setting is in sync with your database details.
<connection-url>jdbc:postgresql://localhost:5432/<YOUR_DB_NAME></connection-url>
<security>
  <user-name><YOUR_DB_USER_NAME></user-name>
  <password><YOUR_DB_USER_PASSWORD></password
</security>
  • Check HTTP port configuration is correct in
<socket-binding name=\"http\" port=\"${jboss.http.port:8080}\"/>
  1. Change directory back to <CLONED_REPO_DIR>/egov/dev-utils/deployment/ and run the below command
$  chmod +x deploy.sh
$ ./deploy.sh

Alternatively this can be done manually by following the below steps.

  • Copy the generated exploded ear <CLONED_REPO_DIR>/egov/egov-ear/target/egov-ear-<VERSION>.ear in to your JBoss deployment folder <JBOSS_HOME>/standalone/deployments
  • Create or touch a file named egov-ear-<VERSION>.ear.dodeploy to make sure JBoss picks it up for auto deployment
  1. Start the wildfly server by executing the below command
 $ cd <JBOSS_HOME>/bin/
 $ nohup ./standalone.sh -b 0.0.0.0 &

In Mac OSx, it may also required to specify -Djboss.modules.system.pkgs=org.jboss.byteman

-b 0.0.0.0 only required if application accessed using IP address or domain name.

  1. Monitor the logs and in case of successful deployment, just hit http://localhost:<YOUR_HTTP_PORT>/egi in your favorite browser.
  2. Login using username as egovernments and password demo

Accessing the application using IP address and domain name

This section is to be referred only if you want the application to run using any ip address or domain name.

1. To access the application using IP address:
  • Have an entry in eg_city table in database with an IP address of the machine where application server is running (for ex: domainurl=\”172.16.2.164\”) to access application using IP address.
  • Access the application using an url http://172.**16.*2.164:8080/egi/ where 172.16.2.164 is the IP and 8080 is the port of the machine where application server is running.
2. To access the application using domain name:
  • Have an entry in eg_city table in database with domain name (for ex: domainurl= \”www.egoverpphoenix.org\”) to access application using domain name.
  • Add the entry in hosts file of your system with details as 172.16.2.164 www.egoverpphoenix.org (This needs to be done both in server machine as well as the machines in which the application needs to be accessed since this is not a public domain).
  • Access the application using an url http://www.ego*v*erpphoen*ix.org:8080/egi/ where www.egoverpphoenix.org is the domain name and 8080 is the port of the machine where application server is running.

Always start the wildfly server with the below command to access the application using IP address or domain name.

 nohup ./standalone.sh -b 0.0.0.0 &

Developer Guide

This section gives more details regarding developing and contributing to eGov suit.

Repository Structure

egov – folder contains all the source code of eGov opensource projects

Check out sources

git clone git@github.com:egovernments/egov-smartcity-suite.git or git clone https://*gith*u*b.com/egovernments/egov-smartcity-suite.git

Prerequisites

  • Install your favorite IDE for java project. Recommended Eclipse or IntelliJ IDEA
  • Install maven >= v3.2.x
  • Install PostgreSQL >= v9.4
  • Install Elastic Search >= v2.4.x
  • Install Jboss Wildfly v10.x
  • Install Git 2.8.3
  • Install JDK 8 update 112 or later

Note: Please check in [eGov Tools Repository] for any of the above software installables before downloading from internet.

1. Eclipse Deployment
  • Install Eclipse Mars Eclipse Mars
  • Import the cloned git repo using maven Import Existing Project.
  • Install Jboss Tools and configure Wildfly Server.
  • Since jasperreport related jar\’s are not available in maven central, we have to tell eclipse to find jar\’s in alternative place for that navigate to Windows -> Preference -> Maven -> User Settings -> Browse Global Settings and point settings.xml available under egov-erp/
  • Now add your EAR project into the configured Wildfly server.
  • Start Wildfly in debug mode, this will enable hot deployment.
2. Intellij Deployment
  • Install Intellij
  • Open project
  • In project settings set JDK to 1.8
  • Add a run configuration for JBoss and point the JBOSS home to the wildfly unzipped folder
  • Run
3. Database Migration Procedure
  • Any new sql files created should be added under directory <CLONED_REPO_DIR>/egov/egov-<javaproject>/src/main/resources/db/migration
  • Core product DDL and DML should be added under <CLONED_REPO_DIR>/egov/egov-<javaproject>/src/main/resources/db/migration/main
  • Core product sample data DML should be added under <CLONED_REPO_DIR>/egov/egov-<javaproject>/src/main/resources/db/migration/sample
  • All sql scripts should be named with following format.
  • Format V<timestamp-in-YYYYMMDDHHMMSS-format>__<module-name>_<description>.sql
  • DB migration will automatically happen when application server starts, incase required while maven build use the above given maven command.
Migration file name sample
V20150918161507__egi_initial_data.sql

For more details refer Flyway

Note: This system is supported

OS:-

  • Linux (Recommended)
  • Mac
  • Windows (If Redis server standalone installed).

Browser:-

  • Chrome (Recommended)
  • Firefox
  • Internet Explorer

下载源码

通过命令行克隆项目:

git clone https://github.com/egovernments/egov-smartcity-suite.git

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

申明:本文由第三方发布,内容仅代表作者观点,与本网站无关。对本文以及其中全部或者部分内容的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。本网发布或转载文章出于传递更多信息之目的,并不意味着赞同其观点或证实其描述,也不代表本网对其真实性负责。

左子网 开发教程 egov smartcity suite https://www.zuozi.net/31455.html

常见问题
  • 1、自动:拍下后,点击(下载)链接即可下载;2、手动:拍下后,联系卖家发放即可或者联系官方找开发者发货。
查看详情
  • 1、源码默认交易周期:手动发货商品为1-3天,并且用户付款金额将会进入平台担保直到交易完成或者3-7天即可发放,如遇纠纷无限期延长收款金额直至纠纷解决或者退款!;
查看详情
  • 1、描述:源码描述(含标题)与实际源码不一致的(例:货不对板); 2、演示:有演示站时,与实际源码小于95%一致的(但描述中有”不保证完全一样、有变化的可能性”类似显著声明的除外); 3、发货:不发货可无理由退款; 4、安装:免费提供安装服务的源码但卖家不履行的; 5、收费:价格虚标,额外收取其他费用的(但描述中有显著声明或双方交易前有商定的除外); 6、其他:如质量方面的硬性常规问题BUG等。 注:经核实符合上述任一,均支持退款,但卖家予以积极解决问题则除外。
查看详情
  • 1、左子会对双方交易的过程及交易商品的快照进行永久存档,以确保交易的真实、有效、安全! 2、左子无法对如“永久包更新”、“永久技术支持”等类似交易之后的商家承诺做担保,请买家自行鉴别; 3、在源码同时有网站演示与图片演示,且站演与图演不一致时,默认按图演作为纠纷评判依据(特别声明或有商定除外); 4、在没有”无任何正当退款依据”的前提下,商品写有”一旦售出,概不支持退款”等类似的声明,视为无效声明; 5、在未拍下前,双方在QQ上所商定的交易内容,亦可成为纠纷评判依据(商定与描述冲突时,商定为准); 6、因聊天记录可作为纠纷评判依据,故双方联系时,只与对方在左子上所留的QQ、手机号沟通,以防对方不承认自我承诺。 7、虽然交易产生纠纷的几率很小,但一定要保留如聊天记录、手机短信等这样的重要信息,以防产生纠纷时便于左子介入快速处理。
查看详情

相关文章

猜你喜欢
发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务