Skip to content

A webapp for creating anonymous, ephemeral chatrooms.

Notifications You must be signed in to change notification settings

jerbob/anonchat

Repository files navigation

AnonChat Build Status

A website for creating anonymous, ephemeral chatrooms.

Development

To run the site locally, clone the repo and run:

$ docker-compose -f development.yml up -d

Deployment

The site's docker container is on Docker Hub, so the only file you'll need is docker-compose.yml.
You'll need to create an .env file in the same directory as docker-compose.yml. Set the following variables:

STATIC_ROOT=static
SECRET_KEY=...

SQL_PORT=5432
SQL_USER=postgres
SQL_HOST=database
SQL_DATABASE=postgres
POSTGRES_HOST_AUTH_METHOD=trust

DJANGO_SETTINGS_MODULE=anonchat.settings

Bring the containers up with:

$ docker-compose up -d

Then run migrations:

$ docker-compose exec site anonchat/manage.py migrate

To manage Messages and Rooms in the Django admin interface, create a superuser:

$ docker-compose exec site anonchat/manage.py createsuperuser

Then add the appropriate configuration for your preferred reverse proxy. For example, with nginx:

server {
    listen 80;
    server_name anonchat.jeremiahboby.me;

    location / {
        proxy_set_header Upgrade $http_upgrade;
        proxy_pass http://localhost:8000;
    }
}

About

A webapp for creating anonymous, ephemeral chatrooms.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published