dominikbraun / foodunit

A self-hosted web application for offering and ordering food. (WIP)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FoodUnit 3

Prerequisites

Running FoodUnit 3 natively requires:

Running FoodUnit 3 containerized requires:

Start FoodUnit natively

FoodUnit basically consists of an API server, an UI server, a migration tool and a backing database. In order to run the application natively, a local MySQL/MariaDB database is required.

Copy app.example.toml and rename it to app.toml. Fill in appropriate values. Do the same thing with ui/public/config.example.json.

If the database tables do not exist yet, run:

$ ./run-migration.sh

Then start the other components:

$ ./run-server.sh
$ ./run-ui.sh

If you want to change the default values, start the component manually with the corresponding flags. These scripts are intended for development only.

Start FoodUnit containerized

Just as mentioned above, copy and rename the configuration files. Then build and run the containers.

$ docker-compose up

You may run the containers yourself just with docker run, using the environment variables and volumes specified in docker-compose.yml.

These containers are intended for development only.

About

A self-hosted web application for offering and ordering food. (WIP)

License:Apache License 2.0


Languages

Language:JavaScript 46.0%Language:Go 45.2%Language:Dockerfile 4.0%Language:CSS 3.4%Language:HTML 1.0%Language:Shell 0.4%