Skip to content

books4equality/b4e_v3

Repository files navigation

books4equality

Books 4 Equality was created in 2014 by three students of the University of Vermont.

We accept books in fair condition and use them to reduce the education gap around the globe. Most books that we receive are donated to Books For Africa, and a number of others are sold to generate funding for shipping them.

Install your own site

You can deploy your own Books For Equality clone for free. Take a look at how to get it up and running into the cloud. If you need some help, let us know.

Install (only for developers)

Prerequisites:

  • Tools: nodejs, git and bower (npm install -g bower).
  • A mongodb instance running on localhost:27017. A database "b4e" with automatically be created if needed.
> git clone [email protected]:books4equality/books4equality.git
> cd books4equality
> bower install
> npm install
> npm start

On Windows, make sure you run cmd as admin before npm install Command Prompt on windows has been known to fail when run in it's default mode

The web server should be up and running at localhost:3200. However, since some recent additions required for account creation, it may be more complicated to install the site in Windows. The above instructions may not be complete.

Advanced configuration

The following environment variables are available:

  • PORT: Web server port (default 3200).
  • MONGO_URL: Connection string to the mongodb database (default mongodb://localhost:27017/b4e).
  • ADMIN_PASS: Administrative password (default random password). The administration zone is password protected at localhost:3200/admin.

License

AGPL v3.0 LICENSE http://www.gnu.org/licenses/agpl-3.0.html