Skip to content
A historical-geographic information system for the swiss canton of Bern
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.
assets
bin
config
public
src
templates
tests
translations
.env
.env.test
.gitignore
LICENSE
README.MD
composer.json
composer.lock
data.tar.gz
package.json
phpunit.xml.dist
symfony.lock
test.json
webpack.config.js
yarn.lock

README.MD

BERNHIST

A re-programming and enhancement of BERNHIST (A historical-geographic information system for the swiss canton of Bern) to ensure further compatibility with modern technologies.

Screenshot

Screenshot

About the original project (1994 - 2006)

BERNHIST was established by the department of economic, social and environmental History (Abteilung für Wirtschafts-, Sozial- und Umweltgeschichte, WSU) at the historical institute of the university of bern with the collaboration of Daniel Brändli, Urs Dietrich, Peter Häberli, Klaus Imfeld, Serge Meyer, Reto Müller, Stefan Ruetsch, Niklaus Schranz, Hannes Schüle und Erich Siffert.

Screenshot

The files of the original project can be found here.

What is new?

The re-programming was made with the PHP Framework Symfony, the front-end component library Bootstrap and the javascript charting library Chartist. To enable automated queries an OAI compatible API was created.

Prerequisites

  • PHP 7.1.3 or newer (See here for more information about the needed php extensions)
  • A database. The symfony framework is compatible with many database types. The project was tested with MySQL server version 5.7.26
  • composer and yarn
  • Apache or NGINX webserver (See here for more information about the configuration). During development Symfony's built-in webserver can be used.

Installation

Clone the repository:

git clone https://github.com/UB-Bern/bernhist.git

Change to the created directory and run:

composer install

Create a local copy of the .env file:

cp .env .env.local

Open the created .env.local file and set the DATABASE_URL to the desired value (see here for examples)

If the database does not already exist execute the following command:

bin/console doctrine:database:create

Create the database schema:

bin/console doctrine:schema:create

Extract data.tar.gz in the project root and import the SQL data dump:

mysql -u [username] -p [database] < [path to data dir]/bernhist_data.sql

Replace [username] with the mysql user, [database] with the name of your database and [path to data dir] with the relative or absolute path to the extracted mysql dump.

Install the frontend dependencies with:

yarn install

Development

Build the assets with

yarn encore dev

Run the Symfony Server with

bin/console server:start

Production

Build the assets with

yarn encore prod

Open the .env.local file and set APP_ENV to prod.

Ensure that the web root configured in the webserver points to the public folder.

Contributors

Original project

  • Prof. em. Dr. Christian Pfister
  • The persons named under "About the original project"
  • Erziehungsdirektion des Kantons Bern (1984-1986)
  • Schweizerischen Nationalfonds zur Förderung der Forschung (1986-1990)
  • SEVA Lotteriefonds (1991-1993)
  • Mobiliar Versicherung und Vorsorge (1992)
  • Stiftung zur Förderung der wissenschaftlichen Forschung an der Universität Bern (Hochschulstiftung) (1996-97)

Current project

Versioning

SemVer is used for versioning. For the versions available, see the tags on this repository.

License

This project (Version 2.0.0 and newer) is licensed under the MIT License - see the LICENSE file for details.

You can’t perform that action at this time.