Giter VIP home page Giter VIP logo

sp-gestion's Introduction

SP-Gestion

Code status

Tests : Build Status

Coverage : Coverage Status

Quality : Code Climate

Dependencies : Dependency Status

Prerequisites

  • Ruby 2.2.5 or greater
  • Mysql
  • memcached
  • ImageMagick
  • HTTP server with ruby support (Passenger, Puma...)

Setup

  • checkout source :
git clone https://github.com/osaris/sp-gestion.git
  • go into master :
cd sp-gestion
  • install bundler :
gem install bundler
  • install all required gem :
bundle install
  • copy config/sp-gestion.sample.yml to config/sp-gestion.yml and change its content to fit your setup

  • edit config/database.yml (if necessary)

  • create database, load schema and import seed data :

rake db:setup
  • setup local dns for *.dev resolution or configure www.sp-gestion.dev and cpi-demo.sp-gestion.dev via hostfile
  • browse www.sp-gestion.dev for home
  • browse cpi-demo.sp-gestion.dev for a sample account (login : [email protected] | pass : demospg)

You can switch cpi-demo (or any other account) to demo mode by setting to true the demo flag on the Station model. Then you can generate demo data with rake spg:reset_demo_stations.

Emails

Development environment is configured to use Mailcatcher. Simply run gem install mailcatcher then mailcatcher to get started.

Tests

  • prepare database :
rake db:test:prepare
  • run rspec

Deployment

  • Capistrano is included in the Gemfile and a sample configuration file is delivered in config/deploy.sample.rb.

Production

  • if you want to use newrelic you must have an account (http://newrelic.com/) and generate the config/newrelic.yml file by running newrelic install in the root folder of the application.

Licensing

SP-Gestion is released under the MIT License.

sp-gestion's People

Contributors

osaris avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

ianbogda kaluznyo

sp-gestion's Issues

Move hosting to Scalingo

This will avoid having to deal with hosting directly.

Steps to migrate :

  • Create Scalingo trial account
  • Setup app server on Scalingo
  • Setup database server on Scalingo
  • Setup memcached server on Scalingo
  • Setup delayed_job on Scalingo
  • Setup SSL certificate #18 on Scalingo
  • Disable app on current hosting to avoid data loss while migrating database
  • Migrate database from current hosting to Scalingo
  • Change DNS to use Scalingo as main hosting

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.