Slashershare

Take a look on the website SlasherShare

Check the doc SlasherShare-doc

Table of content

  1. Short install

  2. Detailed install

  3. How to contribute

  4. More infos


How to install - short way

You're not afraid of copying and pasting code into your terminal, are you?

git clone https://github.com/armandfardeau/slashershare.git
cd slashershare
chmod +x r.sh
./r.sh

Reload page after installation and you're good to go !


How to install - detailed way

We strongly suggest the use of ruby version manager aka rvm, to install paste the following in your terminal:

curl -sSL https://get.rvm.io | bash -s stable --ruby
git clone https://github.com/armandfardeau/slashershare.git
cd slashershare
ruby -v

if it's ruby-2.4.2 you're good to go! else, install the requested version with rvm.

rvm -v

If you get an rvm not found error, you may try the following

source ~/.rvm/scripts/rvm
rvm install ruby-2.4.2
rvm use 2.4.2
ruby -v

If the output is ruby-2.4.2 you can move to the next section.


Contributions

This project is open to contribution, in order to keep the codebase as clean as possible, you're advised to follow the rules.

Rules

Branch master is protected, you cannot push to it.

Each feature should be covered by at least one test.

Each pull request need to be validated by :

To contribute, start a new branch

git checkout -b feature/nameofyourfeature

add and commit your changes, then push it to the repo

git push --set-upstream origin feature/nameofyourfeature

Be explicit, explain what you add to the project ! Ask for a peer review.


More infos

Custom rake tasks

The following command: bash rails reload Do the same than: bash rake db:drop db:create db:migrate db:seed

Generate doc with Rdoc the simple way : bash rails doc:generate

Get doc status with : bash rails doc:status

You can get the list of rake task with : bash rails -T

Active admin back office

Active admin is install both in developement and in production to ensure an easy developement. Login and password couple can be found in seed file.

To login go to

localhost:3000/admin/

or in production

slashershare.herokuapp.com/admin

ruby-2.4.2

rails-5.1.4

postgres in production

rails db:create

rails test
rubocop

Continous integration is under the vigilance of travis.

Just push on github and your code will be deployed unless test failed.