GithubHelp home page GithubHelp logo

francois2metz / linuxfr.org Goto Github PK

View Code? Open in Web Editor NEW

This project forked from linuxfrorg/linuxfr.org

2.0 3.0 1.0 38.75 MB

LinuxFr.org in Ruby on Rails.

Home Page: http://linuxfr.org

License: GNU Affero General Public License v3.0

Ruby 67.23% JavaScript 32.77%

linuxfr.org's Introduction

LinuxFr.org

LinuxFr.org is a french web site speaking of Linux and Free Software.

This git repository is the rails application that run on LinuxFr.org.

Install

The following instructions will help you to install the Rails part of LinuxFr.org on a Debian box.

  1. First install the Debian packages:

    (become root, you should probably remove any preexisting ruby1.8 installation)

    aptitude install ruby1.9.1-full

    aptitude install mysql-server mysql-client libmysql++-dev

    aptitude install build-essential libxslt1-dev libxml2-dev

    aptitude install imagemagick hunspell hunspell-fr

  2. Install some gems:

    gem install bundler rake

    (could be gem1.9.1 instead of gem, installation should be in /var/lib/gems/1.9.1 by default)

  3. Configure the database:

    mysql -p -u root

    > CREATE DATABASE linuxfr_rails; > GRANT ALL PRIVILEGES ON linuxfr_rails.* TO "linuxfr_rails"@"localhost"; > QUIT; (return to user)
  4. Install and start redis:

    $ wget "http://redis.googlecode.com/files/redis-2.2.1.tar.gz" $ tar xzf redis-2.2.1.tar.gz $ cd redis-2.2.1 $ make (optional, takes about ten minutes, $ make test ) $ src/redis-server redis.conf

  5. Clone the repository, configure and install gems:

    $ git clone git://github.com/nono/linuxfr.org.git $ cd linuxfr.org $ cp config/database.yml{.sample,} $ cp config/secret.yml{.sample,} (become root)

    bundle install

    (probably /var/lib/gems/1.9.1/bin/bundle if not in your PATH) (return to user) $ rake db:setup (probably /var/lib/gems/1.9.1/bin/rake if not in your PATH)

  6. Let's run it:

    $ bundle exec rails server thin (probably /var/lib/gems/1.9.1/bin/bundle if not in your PATH) $ firefox http://127.0.0.1:3000/ (did you mean iceweasel?)

  7. Create an admin account:

    Create an account Get confirmation link in the console and confirm the account (Get password in the console) Give admin role to this account mysql> UPDATE accounts SET role='admin' WHERE login='xxxxxx'; Reload the page on the site, you should be admin.

See also

If you want the full stack for running LinuxFr.org, you should also look at:

How to run the specs

  1. Be sure that redis is running and create the test database:

    $ rake db:test:prepare

  2. Run spork in background:

    $ spork &

  3. And now, just run rspec (and repeat this step until done):

    $ rspec spec

Copyright

The code is licensed as GNU AGPLv3. See the LICENSE file for the full license.

The default avatar is a modified Tux.

Iconic icons are licenced CC by-sa 3.0.

Copyright (c) 2011 Bruno Michel [email protected]

linuxfr.org's People

Contributors

nono avatar nschoonbroodt avatar oumph avatar spk avatar yggdras avatar byroot avatar danielchesters avatar francois2metz avatar rbignon avatar chtitux avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

hengesense

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.