Skip to content

Viewer used to browse digitized archival material. Based on the APACS api

Notifications You must be signed in to change notification settings

CopenhagenCityArchives/kildeviseren

Repository files navigation

Build Status

Kildeviseren

Development

Run npm install to get started.

To run the server locally: Run gulp watch

This will start a local server at localhost:8080 Go to a workin url like 'http://localhost:8080#!?collection=2&item=3809251' to see the code in action.

Live reloading of the server required the LiveReload plugin for either Chrome or Firefox.

Building and profiles

The project contains profile configurations that change aspects of the resulting build, specified with the flag -p <PROFILE>. The default profile is kbharkiv.

Example: gulp build -p frederiksberg

In the profile directory is a subdirectory for each supported profile. A profile directory contains:

  • a config.js, which contains an angular module with constant defined by the name config.

  • a favicon.ico

  • a selection of PHP files, and an .htaccess file which can be customized, including index.html.

The profile name is used during ftp upload to decide the remote folder name. If the profile is the default kbharkiv, it is omitted.

The allowed profiles are hardcoded in gulpfile.js.

Test

Right now only Angular functionality is tested.

Tests are run with Jasmine using the included specRunner.html file.

About

Viewer used to browse digitized archival material. Based on the APACS api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published