This is a sample project to test the @angular/flex-layout framework.
It will also build and run in a Docker container on both x86_64 and ARM32v7 architectures.
Source at flexlayout
If you would just like to run the application please see the flexlayout-compose repository on GitHub.
Build and Run for X86_64
The following steps will build and run the service app on X86_64.
- npm install
- npm run docker-start
Build and Run for ARM32v7
The following steps will build and run the service app on ARM32v7.
- On the cross-compilation development environment (e.g., macOS)
- npm install
- npm run rpi3
- On the ARM device
- tar xzf flexLayout.tgz
- cd flexLayout
- npm run docker-start-arm
Note node and npm (including packages) support is slim for ARM; cross-compilation is required. So after the project
is transferred to your ARM device you do not want to try to build it.
You need to prepare a few things in order to use the instructions for the ARM32v7 platform.
- Install Unbuntu MATE 16.04 on your ARM device (note that I have not tested with Raspian)
- Create an entry in /etc/hosts on macOS to point to your devices ip address
- Setup ssh certifate authentication from macOS to your ARM device
- Edit the Constants in animalsapictl to fit your environment: REPO, IMAGE, CONTAINER, PORT, RPI3HOST and RPI3PATH
In order to use the instructions on the x86_64 platform do the following.
- Edit /etc/hosts and add an entry for outerhost as follows:
Note that this project depends on the Service Application klmcwhirter/animalsapi.
Also note that if you use flexlayout-compose repository most of these prerequisites do not apply.
I have added an MIT license just so that it is clear that you can do whatever you like with this, but I provide