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.
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.
The files of the original project can be found here.
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.
- PHP 8.2 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 PostgreSQL server version 15
- 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.
Clone the repository:
git clone https://github.com/ub-unibe-ch/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
Import the sql file data.sql.gz
in the database:
gunzip -c data.sql.gz | psql -u [username] -p [database]
Replace [username] with the mysql user, [database] with the name of your database.
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.
- 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)
SemVer is used for versioning. For the versions available, see the tags on this repository.
This project (Version 2.0.0 and newer) is licensed under the MIT License - see the LICENSE file for details.