Skip to content

michael-lazar/lets-dance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

20 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Let's Dance ๐Ÿ’ƒ

Let's Dance is a humble Spring '83 server written in django.

Now live at https://spring83.mozz.us.

See my notes on the protocol.

Requirements

  • python 3.10
  • a strong constitution

Development

# Download the source
git clone https://github.com/michael-lazar/lets-dance
cd lets-dance/

# Initialize a virtual environment and install pip dependencies, etc.
tools/boostrap

# Create a user account for the admin dashboard
tools/manage createsuperuser

# Launch a local server
tools/start 127.0.0.1:8000

# Initialize pre-commit hooks
pre-commit install

# Run the tests, linters, etc.
tools/pytest
tools/mypy

# Tinker with the database
sqlite3 data/lets-dance.sqlite3

# Rebuild requirements
tools/pip-compile
tools/pip-install

# Generate a usable ed25519 key
tools/manage generate_keypair

# Seed your database with fake boards
tools/manage seed_boards --count 100

# Publish a board to any server
echo "<h1>Hello World!</h1>" | tools/manage publish_board \
    --content-file - \
    --public-key <public key> \
    --private-key <private key> \
    --server-url http://127.0.0.1:8000

# Check your local weather forecast
curl http://wttr.in

Deploying to Production

You're on your own!

License

The Human Software License

A hobbyist software license that promotes maintainer happiness through personal interactions. Non-human legal entities such as corporations and agencies aren't allowed to participate.