Skip to content

Building

How to build each Applikant component.

Prerequisites

Tool Version Purpose
Erlang/OTP 27+ Backend
Rebar3 3.x Erlang build tool
Elm 0.19.1 Web frontend
Docker 20+ Builder, containerization

Components

am – Manager

cd applikant.manager/am
rebar3 compile       # compile only
rebar3 shell         # compile + start interactive shell
rebar3 as prod tar   # production release

af – Frontend Connector

cd applikant.git-in/af
rebar3 compile
rebar3 shell

as – SSH Handler

cd applikant.git-in/as
rebar3 escriptize
# Output: _build/default/bin/as

ah – Git Hooks

cd applikant.git-in/ah
rebar3 escriptize
# Output: _build/default/bin/ah

aw – Web Frontend

# 1. Build Elm frontend
cd applikant.webfrontend/elm
bash build-elm.sh
# Output: ../aw/apps/aw/priv/static/app.js

# 2. Build and start Erlang backend
cd ../aw
rebar3 shell

The Elm source is split into modules under elm/src/ (Main, Types, Shared, Page/Dashboard, Page/Repositories, Page/Users).

ab – Builder

cd applikant.builder
docker build -t applikant/builder .

Docker Images

git-in (as + ah)

cd applikant.git-in
docker build -t applikant/git-in .

Web Frontend

cd applikant.webfrontend
bash docker-build.sh

Builder

cd applikant.builder
docker build -t applikant/builder .