Git Product home page Git Product logo

nesta-bookshare's Introduction

NESTA Bookshare

A web application for peer-to-peer community lending and borrowing of books.

Copyright (c) 2011 London Borough of Sutton

Funded by NESTA

Licence

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Installation

In Terminal, move to the folder you want to contain your Bookshare application.

We're going to set up Bookshare for the fictional town of Casterbridge.


Fork the main project repository into your own account by clicking the Fork button on the main project page.


Clone your new git repository to your local machine:

$ git clone git://github.com/your-username/nesta-bookshare.git casterbridgebookshare

Move into your Bookshare folder:

$ cd casterbridgebookshare

Make a copy of the default theme to use for your own site.

Do not edit the default theme itself as it'll get overwritten when you next pull down a copy of the latest Bookshare version.

$ cp -r themes/default/ themes/casterbridge/

Add your theme to your git repository:

$ git add themes/casterbridge

If you're hosting on Heroku, set up your configuration variables like this:

$ heroku config:add BOOKSHARE_SITENAME="Casterbridge Bookshare"
$ heroku config:add BOOKSHARE_THEME=casterbridge
$ heroku config:add [email protected]
$ heroku config:add [email protected]
$ heroku config:add BOOKSHARE_TWITTER=casterbridgebookshare
$ heroku config:add BOOKSHARE_GOOGLE_ANALYTICS=UA-XXXXX-X

If you're not hosting on Heroku (or if you want to run a local server, set up your configuration as environment variables. It might look something like this:

$ export BOOKSHARE_SITENAME="Casterbridge Bookshare"
$ export BOOKSHARE_THEME=casterbridge
$ export [email protected]
$ export [email protected]
$ export BOOKSHARE_TWITTER=casterbridgebookshare
$ export BOOKSHARE_GOOGLE_ANALYTICS=UA-XXXXX-X

BOOKSHARE_SITENAME is the human-readable name of your site

BOOKSHARE_THEME is the name of your theme's folder within /themes

BOOKSHARE_EMAIL is your main public contact email address

BOOKSHARE_NO_REPLY_EMAIL is used as the sender address on some outbound email messages. Use a noreply address at your domain if you've got one or your main contact address if you're happy to receive replies to these.

BOOKSHARE_TWITTER is the name of the Twitter account for your Bookshare project. Don't include the @ sign at the beginning. Leave this out if you don't have a Twitter account for your Bookshare.

BOOKSHARE_GOOGLE_ANALYTICS is the web property ID (starts with "UA") for your site on Google Analytics. If you're not using Analytics to track your web statistics just leave this blank.


Put your database details in config/database.yml


Build the database:

$ rake db:migrate

Check that all the tests run OK:

$ rake

Register as the first user on your new site. You'll automatically be made a site administrator. You can promote other users to be administrators in the Administration section.


Now you're good to go.

nesta-bookshare's People

Contributors

adrianshort avatar frankieroberto avatar

Watchers

 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.