All you can see for now is ash and light distorted by the heat.
cd api
cargo build
or (with docker)
docker build -t ph-api:dev .
then to run
cargo run
or (with docker)
docker run -it --init --rm \
-p 3001:3001 \
-e ROCKET_PORT=3001 -e ROCKET_ADDRESS=0.0.0.0 \
-v ${PWD}/src:/usr/src/api/src \
ph-api:dev
cd app
npm install
or (with docker)
docker build -t ph-app:dev .
then to run
npm start
or (with docker)
docker run -it --rm \
-v ${PWD}:/app \
-p 3000:3000 \
-e CHOKIDAR_USEPOLLING=true \
ph-app:dev
You can also build and run everything at once with docker compose
docker-compose build
docker-compose up
In production, using docker compose is highly recommanded.
docker-compose -f docker-compose.prod.yml build
docker-compose -f docker-compose.prod.yml up
The app will be accessible on port 80.
More option will be available later to be able to tweak every possible thing and fully respect the twelve factors.