Skip to content

Latest commit

 

History

History
73 lines (51 loc) · 1.35 KB

README.md

File metadata and controls

73 lines (51 loc) · 1.35 KB

Simple MSG Server

Collect and display messages. Either via formdata or json.

Environment / configuration variables

Env name default value
DB_HOST localhost
DB_NAME postgres
DB_USER postgres
DB_PASS
DB_PORT 5432
SECRET_KEY
DJANGO_DEBUG False
DJANGO_ALLOWED_HOSTS 127.0.0.1,localhost
CSRF_TRUSTED_ORIGINS http://127.0.0.1:8000

Running

Prebuild image

Pull the image from GitHub

podman pull ghcr.io/data5tream/simple-msg-server:latest

Local build

Build the container

podman build -t simple-msg-server .

Run the container (you need a running postgres database)

podman run -p 8000:8000 \
  -e DB_HOST=host.containers.internal \
  -e DB_PASS=password \
  simple-msg-server

Developing

Install typescript dependencies

nvm use
pnpm i

Run typescript watcher

pnpm watch

Prepare django

pip install -r requirements.txt
python manage.py migrate

Run django

python manage.py runserver