Skip to content
This repository has been archived by the owner. It is now read-only.
A free book donations service
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
lib
log
public
screenshots
test
tmp
vendor/assets
.gitignore
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
config.ru
pinger.py

README.md

Biblion.se

Screenshot of the home page

For more screenshots, look inside the screenshots folder.

Getting started

Prerequisites

To run this locally, you need Ruby and Rails installed. Biblion has been developed with Ruby 2.4 and Rails 5.0.6. Compatibility with other versions is not guaranteed.

Installing

Clone this repository into your preferred folder.

cd /your_path/

git clone https://github.com/johan-andersson01/biblion.git

cd biblion

Install gems.

bundle install

Create the database.

rails db:create

rails db:migrate

rails db:seed

Run the server.

rails s

After executing these commands, the server will be up and running at localhost:3000.

You will have created one admin user and one regular user with the db:seed command, with the following credentials:

Admin:

email: admin@foo.bar

password: foobar9000

Regular user:

email: tester@foo.bar

password: foobar9000

These can be changed later on site, after you've logged in.

Deployment

This can be easily deployed on Heroku for free. If you're interested in this, see Michael Hartl's Rails Tutorial.

Porting to another language

Since this project has been built for Swedish users in mind, much of the interface is written in Swedish. Here are some tips if you want to port this project to another language & location:

  • Go through all files under /app/views/ and /app/controllers/ and look for Swedish words and sentences.
  • Replace all instances of CS.states(:se) with your country of choice.

Acknowledgements

This project would not have been possible without the writings of Michael Hartl: Ruby on Rails Tutorial.

You can’t perform that action at this time.