Giter Club home page Giter Club logo

madeinsyriafr's Introduction

MadeInSyriaFR

MadeInSyriaFR is not only the way I learned Ruby on Rails, it is also the actual code base for my blog, MadeInSyria.fr.

It is based on :

  • Ruby 2.0.0
  • Rails 4

Code Climate

It requieres a database supported by ActiveRecord

Installation

Preparing the Rails 4 environement :

git clone https://github.com/MadeInSyria/MadeInSyriaFR.git
cd MadeInSyriaFR
bundle install

Create a database for your blog, then build your config/database.yml file. This a working example for MySQL.

#   gem install mysql
#
#   Ensure the MySQL gem is defined in your Gemfile
#   gem 'mysql'
production:
  adapter: mysql2
  database: MadeInSyriaFR_prod
  username: root
  password: password 
  host: localhost
  socket: /tmp/mysql.sock

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
  adapter: mysql2
  database: MadeInSyriaFR_test
  username: root
  password: password
  host: localhost
  socket: /tmp/mysql.sock

development:
  adapter: mysql2
  database: MadeInSyriaFR_dev
  username: root
  password: password
  host: localhost
  socket: /tmp/mysql.sock

You can now prepare the database :

rake db:migrate RAILS_ENV=production
rake db:seed RAILS_ENV=production

Your blog is ready to be launched :

rails server RAILS_ENV=production

Your blog is now up and running! The default user name and password are [email protected] and foobar123. Once connected, edit your profile, and trash the first post to replace it by yours!

PS

This is not by any mean supposed to be the best blog engine on the web. It is a demo, training and a good way get familiar with RoR. Do not use for production purpose if you are not planning to improve the code!

madeinsyriafr's People

Contributors

madeinsyria avatar

Watchers

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