Coder Social home page Coder Social logo

urbo-pgsql-connector's Introduction

URBO PGSQL connector

Status master branch: Build Status

Status staging branch: Build Status

Status dev branch: Build Status

This project is a connector between Fiware and PostgreSQL. It supports spatial features with PostGIS and CartoDB.

You choose which part of Fiware do you want to listen to, you specify how to map the information and you'll get this information ready on a PostgreSQL database. Furthermore, if you want to have great maps you can also have this information at CartoDB, it's up to you.

## How to use

It's your lucky day, we use Docker to deploy (also for development stages).

You need the following dependencies to run this project:

1. Prepare the database.

// Create data container
docker create --name urbo_pgdata -v /data debian /bin/true
// Start the db
docker-compose up -d postgis
// Create the database and execute the start scripts, for connector
docker-compose exec -T  postgis psql -U postgres -f /usr/src/db/all.sql

2. Prepare your config file.

At this file you specify which part of fiware you want to listen to and how to map the info.

cp api/config.example.yml api/config.yml

Now, you can edit this file using your favourite text editor.

3. Run.

docker-compose up

Development

###Create an alias to docker-compose Let's call it dcp

echo "alias dcp='docker-compose -f docker-compose.dev.yml'" >> ~/.bash_profile
source ~/.bash_profile

First time

Install node packages on sources directory

dcp run api  npm install

Database

// Create data container
docker create --name urbo_pgdata -v /data debian /bin/true
// Start the db
dcp up -d postgis
// Create the database and execute the start scripts, for connector
dcp exec -T  postgis psql -U postgres -f /usr/src/db/all.sql

Config file. Copy from sample and fill with your config

cp api/config.sample.yml api/config.yml

Start

dcp up

urbo-pgsql-connector's People

Contributors

cayetanobv avatar geographica-deploy avatar javimudi avatar josemazo avatar juanrmn avatar padawannn avatar

Watchers

 avatar  avatar

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.