Giter Club home page Giter Club logo

pollios's Introduction

Prerequisite

  • Install RVM:
$ curl -sSL https://get.rvm.io | bash -s stable
  • Install Ruby via RVM:
$ rvm install 2.2.2
  • Install dependency software:
brew install postgresql
brew install mongodb
brew install redis
brew install memcached
brew install git-flow

and install heroku-toolbelt

Install

Clone source code from bitbucket:

$ git clone https://bitbucket.org/pollios/pollios
$ cd pollios
$ git checkout develop

Update your Gemfile:

$ gem install bundler
$ bundle

Update your db/schema.rb file to match the stucture of your database:

$ rake db:create
$ rake db:migrate

Start Sidekiq for queuing:

$ redis-server /usr/local/etc/redis.conf
$ bundle exec sidekiq

Start Memcached for caching

$ memcached -d

Run a guard script for testing

$ bundle exec guard

Start server

$ rails s

Go to web browser: localhost:3000

Clone data from your backups file(.dump) to local.

$ pg_restore --verbose --clean --no-acl --no-owner -h localhost -d pollios_development latest.dump

Development

Setup git-flow to manage work on git:

$ git flow init

Check out this link for information: A successful Git branching model

Frontend

Install all dependencies

npm install

Run gulp to take care of parsing SCSS and bundle JS

gulp

Deploy

Development server on heroku

  1. Add the remote to development server on heroku.
$ git remote add development [email protected]:codeapp-polliosdev.git
  1. Push your code to the heroku remote.
$ git push development develop:master

Production server on heroku

  1. Add the remote to production server on heroku.
$ git remote add production [email protected]:codeapp-pollios.git
  1. Push your code to the heroku remote.
$ git push production master

Bitbucket

Push your code to the bitbucket remote.

$ git push -u bitbucket --all

Pull your code from bitbucket.

$ git pull origin master

pollios's People

Contributors

rawitat avatar nuttapon avatar zingfox avatar catflyflyfly avatar chinnonae avatar wasutz avatar frfahrung avatar mannakub1 avatar phuwanart avatar

Watchers

James Cloos 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.