A version of the UI based on this repo is available at https://archive-cm.dina-web.net/. The new UI resides in https://github.com/DINA-Web/dina-collections.
Source code for Collection Manager User Interface for managing Museum Collections.
You will need the following things properly installed on your computer.
git clone <repository-url>this repository- change into the new directory
npm installbower install
To find an overview of the project see project structure.
ember server- Visit your app at http://localhost:4200.
To be able to use the application properly you will need to run a version of the API as well. The API and instructions on how to run it can be found in the dina-web/dw-collections repository.
Once you have the API up and running modify the HOST in the development section in config/environment.js
to match the URL to your API.
The project is using ESLint for linting the JavaScript.
If using Sumblime enable linting by:
- Installing
ESLintusingnpm install -g eslint - Install
SublimeLinterandSublimeLinter-contrib-eslintusing Sublime Package Control.
ember testember test --server
ember build(development)ember build --environment production(production)
The application can be deployed using Docker and a Dockerfile is included to build
an image including a production build of the application and a nginx server.
To build a Docker image of the application:
ember build --environment production --output-path dw-collection-managerdocker build --tag slug/repo_name:version .
Once you've run these two commands you'll have a Docker image that you can deploy.
By default this repository will be built using Travis-ci and a release will be generated and uploaded to github releases and docker hub for each tag.
The integration repository dina-web/dw-collections-ui can be used to deploy the application.