GithubHelp home page GithubHelp logo

segmentacao's Introduction

Segmentation for Contacts

this is an application to filter some contacts by a certain condition like:

  • Contacts with age greater than 10 years old: age > 10
  • Contacts with email from gmail and age greater than 20 years old: age > 20 AND email like '%gmail'

online demo

How to use

  • Fill your contacts base (demo)
  • Create an segmentation (demo) and Add conditions on it.
  • Run your segment and you view the contacts that match with your condition (demo)

Begin now!

How can i run localy? follow these steps

Requirements

  • Postgres 9.4 (default instalation, next next...)
  • NodeJs 4.6.0 (only for the assetpipeline)
  • Ruby 2.2.4
  • Rails 5.0.1 (if you are using windows try railsInstaller and follow this tutorial)

Steps

We are assuming that you have a rails 5.0.1 and your default ecosystem (the omakase specs)

  • Checkout this repository
  • Config your database, change the file config\database.yml and put your database user and password, or put the full qualified URL to your local database.
  • run bundle or bundle install to install all the gem that we needed.
  • run rails db:migrate, this will generate the development database.
  • run rails db:seed, this will fill the database with the default data.
  • run rails s, the server will start on the http://localhost:3000/

Run Tests

To setup the local testes, you must run the previously steps.

  • run rails db:migrate RAILS_ENV=test, this will create de database of ours tests.
  • run rails db:seed RAILS_ENV=test, this will fill ours test database.
  • run rails test <PATH> ou to run all tests rails test

Development Enviroment

  • Lookout whe you are commiting yours files, and not commit some config files with local access credetial.

segmentacao's People

Contributors

restarac 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.