GithubHelp home page GithubHelp logo

itopidea / campo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chloerei/campo1

1.0 2.0 0.0 1.44 MB

A lightweight BBS base on RoR and Mongodb

Home Page: http://codecampo.com/

License: MIT License

campo's Introduction

Campo

A lightweight BBS.

Author: Rei([email protected])

Dependencies

  • Ruby 1.9.2
  • mongodb 1.8.2+
  • redis 2.0+
  • Ruby on Rails 3.0.7

Gems Dependencies see Gemfile.

Getting Started

Assume you have installed mongodb and redis.

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

campo's People

Contributors

chloerei avatar

Stargazers

王吉斌 avatar

Watchers

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