[](Link to CI badge) [](Link to CodeClimate GPA badge) [](Link to CodeClimate Test coverage badge)
Kickoff for Rails web applications.
You can modify the pre-push.sh script to run different scripts before you git push
(e.g Rspec, Cucumber). Then you need to run the following:
> chmod +x pre-push.sh
> ln -s ../../pre-push.sh .git/hooks/pre-push
You can skip the hook by adding --no-verify
to your git push
.
- Download and install Rbenv.
- Download and install Ruby-Build.
- Install the appropriate Ruby version by running
rbenv install [version]
whereversion
is the one located in .ruby-version
-
Clone the repository.
-
Install Bundler.
-
Install all the gems included in the project.
> git clone https://github.com/Wolox/rails-bootstrap.git > gem install bundler > rbenv rehash > bundle
Run ./script/bootstrap app_name
where app_name
is your application name.
Your app is ready. Happy coding!
Install Docker Compose and then run:
> git clone https://github.com/Wolox/internal.git
> docker-compose up
OSX: Get the IP running boot2docker ip
in and enter port 3000
in the browser.
When the servers starts, run the following command in a different console:
> docker-compose run web rake db:create db:seed
To stop the server run the following command in a different console:
> docker-compose stop
To see the running process, run the following command in a different console:
> docker-compose ps
New dependencies should be added to Dockerfile and docker-compose.yml and then run:
> docker-compose build
No deploy configuration yet.
Errbit
is used for exception errors report. To complete this configuration setup the following environment variables in your server
ERRBIT_API_KEY
ERRBIT_HOST
with the credentials located in the errbit application.
Add your code climate token to .travis.yml or docker-compose.yml
For the staging environment label to work, set the TRELLO_URL
environment variable.
Just add a the meta
element to your view.
For example
= meta title: "My Title", description: "My description", keywords: %w(keyword1 keyword2)
You can read more about it here
Set the following variables in your server.
PGHERO_USERNAME=username
PGHERO_PASSWORD=password
Set in your server the `PGHERO
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Run rspec tests (
bundle exec rspec spec -fd
) - Run scss lint (
bundle exec scss-lint app/assets/stylesheets/
) - Run rubocop lint (
bundle exec rubocop app spec -R
) - Push your branch (
git push origin my-new-feature
) - Create a new Pull Request
This project is maintained by Esteban Guido Pintos and it was written by Wolox.
rails-bootstrap is available under the MIT license.
Copyright (c) 2015 Esteban Guido Pintos <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.