Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A lightweight BBS base on RoR and Mongodb
Tree: fc71e9b7f0

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db
doc
lib/tasks
public
script
test
vendor/plugins
.gitignore
.gitmodules
Gemfile
Gemfile.lock
MIT-LICENSE
README.md
Rakefile
config.ru

README.md

Campo

A lightweight BBS.

Author: Rei(chloerei@gmail.com)

Dependencies

  • Ruby 1.9.2
  • mongodb 1.6.5+
  • Ruby on Rails 3.0.5

Gems Dependencies see Gemfile.

Getting Started

1. Download the sources:

git clone git://github.com/chloerei/campo.git

cd campo/

2. Install gems

bundle install

3. Configure the application

cp config/campo.example.yml config/campo.yml
cp config/mongoid.example.yml config/mongoid.yml
edit config/campo.yml
edit config/mongoid.yml

4. Setup Data

Make sure mongodb is running.

rake db:seed

5. Start the server

rails s

For Production Environment

This project is low degree of completion, db schema is changing and not well migration support. not suggest used in production environment. But if you want, there are some notes.

1. Reset secret token (importance for security)

rake secret

Copy the output string and set secret_token column in config/campo.yml

2. Config mongo connection.

edit config/mongoid.yml

Change production params.

For Update

1. Pull source

cd /path/to/your_source
git pull

2. Backup data and run migration.(If you are no first time to setup)

Backup mongo data first.

mongodump -o /path/to/your_want_to_dump_mongo

Run migration.

rake db:migrate

Community

http://codecampo.com is the main website running Campo with develop branch.

Feedback in codecampo.com or github issues(https://github.com/chloerei/campo/issues).

LICENSE

Copyright (c) 2011 Rei http://chloerei.com.

Release under MIT-LICENSE

Something went wrong with that request. Please try again.