Coder Social home page Coder Social logo

harbasevicadnan / sugar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from elektronaut/sugar

0.0 2.0 0.0 19.15 MB

Totally sweet Ruby on Rails-based forum software

License: MIT License

Ruby 59.39% JavaScript 9.47% CSS 6.15% HTML 18.75% ActionScript 6.24%

sugar's Introduction

Build Status Code Climate Test Coverage Dependency Status Security

Sugar

Sugar is a modern open-source forum optimized for performance and usability, written in Ruby on Rails.

Dependencies

SQLite is supported, but you probably want PostgreSQL or MySQL for production use.

Installation

If you want to hack on Sugar, the easiest way to get up and running is with sugar-dev-box. It provides a virtual development environment, and only requires VirtualBox and Vagrant.

Otherwise:

$ git clone https://github.com/elektronaut/sugar.git
$ cd sugar
$ bundle
$ bin/rake db:create
$ bin/rake db:migrate

This assumes you have MySQL running on localhost, with a user named rails with no password. See Configuring Sugar if your setup differs.

Now you can start Solr and the development server:

$ bin/sunspot-solr start
$ bin/rails server

Sugar is now running on localhost:3000.

Deploying Sugar

Sugar is deployed like a regular Rails app, see the official Rails site. A sample Capistrano recipe is provided config/deploy.rb.dist.

For production use, you'll want a full grown Solr setup. See the Sunspot documentation for guides on how to get up and running.

Heroku is currently not supported.

Configuring Sugar

Most of Sugar is configured with a web interface. However, a few details must be sorted out before the app starts. The defaults should be fine for development, but you need tweak these settings for production use with environment variables.

Environment variable Required Info
SUGAR_SECRET_KEY_BASE Yes Set to a long, random string
SUGAR_SECRET_TOKEN - Use if you are upgrading from Rails 3
SUGAR_SESSION_KEY - Default: _sugar_session
SUGAR_DB - Database backend. Default: mysql, also valid: postgresql, sqlite
SUGAR_DB_DATABASE - Default: sugar_<%= Rails.env %>
SUGAR_DB_HOST - Default: localhost
SUGAR_DB_USERNAME - Default: rails
SUGAR_DB_PASSWORD - Default: rails for PostgreSQL, blank for MySQL
SENTRY_DSN - Default: none, set if you want to use Sentry

Credits

Thanks to the members of the B3S community for feedback, ideas and encouragement, names far too many to be mentioned. Napkin was written by Branden Hall of Automata Studios.

License

Copyright (c) 2008 Inge Jørgensen

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

sugar's People

Contributors

elektronaut avatar vena avatar wevah avatar brandenhall avatar mmascorro avatar jedrekk avatar jaydee8 avatar down10 avatar elstob avatar tensafefrogs avatar ozziash avatar irrg avatar yuxisteem avatar

Watchers

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.