Skip to content

fiesta-iot/fiesta-privacy-security

Repository files navigation

Development

Before you can build this project, you must install and configure the following dependencies on your machine:

yarn install

We use [Gulp][] as our build system. Install the Gulp command-line tool globally with:

yarn global add gulp-cli

Run the following commands in two separate terminals to create a blissful development experience where your browser auto-refreshes when files change on your hard drive.

./mvnw
gulp

Building for production

To optimize the FiestaSecurityUI application for production, run:

./mvnw -Pprod clean package

This will concatenate and minify the client CSS and JavaScript files. It will also modify index.html so it references these new files. To ensure everything worked, run:

java -jar target/*.war

To launch your application's tests, run:

./mvnw clean test

Client tests

gulp test

docker-compose -f src/main/docker/mysql.yml up -d

To stop it and remove the container, run:

docker-compose -f src/main/docker/mysql.yml down


./mvnw package -Pprod docker:build

Then run:

docker-compose -f src/main/docker/app.yml up -d