Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 814 Bytes

README.md

File metadata and controls

40 lines (29 loc) · 814 Bytes

aopkg

aopkg is a package registry for Anarchy Online chatbots. It provides a web interface and API to interact with and an easy package layout.

Package layout

You can read about it in the PACKAGING.md file.

Running

You'll need a working rust compiler and cargo.

cargo build --release
touch aopkg.db
touch .env
# put config in .env
./target/release/aopkg

Or use docker/podman:

podman build -t aopkg:latest .
touch aopkg.db
touch .env
# put config in .env
podman run --rm -it -p 7575:7575 --env-file .env -v $(pwd)/aopkg.db:/aopkg.db:Z -v $(pwd)/data:/data:Z aopkg:latest

Configuration

.env should look like this:

DATABASE_URL=sqlite:aopkg.db
COOKIE_SECRET=some_32_character_string
CLIENT_ID=github_client_id
CLIENT_SECRET=github_client_secret