whackashoe / dwitter

Social network for short js demos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dwitter

A platform to write visual art in javascript limited to 140 characters.

Available on dwitter.net

Join the chat at https://gitter.im/lionleaf/dwitter

license

Inspired by arkt.is/t/

Pre-requisites and first-time installation

  • Install npm
  • sudo apt install git virtualenv python-pip
  • git clone https://github.com/lionleaf/dwitter.git

Setup

  • make setup (set up virtual environment)
  • source venv/bin/activate (activate virtual environment)
  • make (install dependencies and set up database)
  • python manage.py createsuperuser (create admin account used below)
  • make run runs the server. Use make serve instead if you're working inside a VM with port forwarding. (0.0.0.0:8000)
  • go to http://localhost:8000/admin/sites/, login with admin account created above, click on the one entry, and change both domain name and display name to localhost:8000.
  • Make sure http://dweet.localhost:8000/ returns a django error. May not work in Firefox.

Other commands

  • make migrations
  • make migrate
  • make lint
    • lints Python and JS files
    • automatically fixes some JS issues (mostly whitespace-related)
  • make shell
  • make backup
  • make restore-backup

About

Social network for short js demos

License:Apache License 2.0


Languages

Language:Python 50.1%Language:HTML 25.5%Language:JavaScript 11.8%Language:CSS 11.5%Language:Makefile 1.1%