This project holds a demo application for the samply.lens project. It's intended usage is to provide an example for developers on how to use samply.lens in their application. To create your own application with Samply.Lens, you can copy the contents of this repository through the template repository functionality in github.
The docker-compose.dev.yml will provide you with a blaze instance to which the demo application will automatically connect. So getting started with the demo is as easy as installing all dependencies
npm install
then starting the dev environment
docker-compose -f ./docker-compose.dev.yml up -d
and finally running the demo application
npm run start
- app.module.ts In this file you can define the translator to use and more.
- main.component.ts In this file you can adjust the displayed diagrams
- environment.ts Defines the target services for builds in development
- environment.prod.ts Defines the target services for the production version of lens (used in Docker Image)
The Dockerfile in this project will build an docker image based on nginx containing the application. The Release Workflow then utilizes the default samply workflow for building docker images
The provided docker-compose.yml will enable you to deploy lens on your server and connect it with a hosted version of the Samply.Beam Broker. You also need to provide a .env file to docker-compose based on our example. We also have an installation script for your servers, but it is not production ready and should be used with caution.
This question is best answered by reading the README on Samply.Lens Repository
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The application will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.