{"id":13483038,"url":"https://github.com/lionleaf/dwitter","last_synced_at":"2025-04-13T22:33:31.746Z","repository":{"id":3217424,"uuid":"48773071","full_name":"lionleaf/dwitter","owner":"lionleaf","description":"Social network for short js demos","archived":false,"fork":false,"pushed_at":"2025-01-14T23:48:11.000Z","size":2292,"stargazers_count":782,"open_issues_count":61,"forks_count":69,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-04-06T20:03:48.278Z","etag":null,"topics":["codegolfing","demos","demoscene","django","dwitter","golfing","hacktoberfest","javascript","social"],"latest_commit_sha":null,"homepage":"https://www.dwitter.net","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lionleaf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-30T00:24:39.000Z","updated_at":"2025-04-06T12:22:21.000Z","dependencies_parsed_at":"2024-01-13T18:20:35.159Z","dependency_job_id":"8e099342-f007-4dcb-8aab-410d8fda84a7","html_url":"https://github.com/lionleaf/dwitter","commit_stats":{"total_commits":712,"total_committers":42,"mean_commits":"16.952380952380953","dds":0.4943820224719101,"last_synced_commit":"83cd600567692babb13ffec314c6066c4dfa04e4"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lionleaf%2Fdwitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lionleaf%2Fdwitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lionleaf%2Fdwitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lionleaf%2Fdwitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lionleaf","download_url":"https://codeload.github.com/lionleaf/dwitter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248790653,"owners_count":21162068,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codegolfing","demos","demoscene","django","dwitter","golfing","hacktoberfest","javascript","social"],"created_at":"2024-07-31T17:01:07.681Z","updated_at":"2025-04-13T22:33:31.696Z","avatar_url":"https://github.com/lionleaf.png","language":"JavaScript","readme":"# dwitter\n\nA platform to write visual art in javascript limited to 140 characters.\n\nThe frontend is currently being rewritten, so please direct frontend development to [dwitter-frontend](https://www.github.com/dwitter-net/dwitter-frontend).\nThe new frontend is currently hosted at [beta.dwitter.net](https://beta.dwitter.net).\n\nAvailable on [dwitter.net](https://www.dwitter.net)\n\nJoin the chat on [Discord](https://discord.gg/r5nXDsQ)\n\n[![license](https://img.shields.io/github/license/lionleaf/dwitter.svg)]()\n\nInspired by [arkt.is/t/](http://arkt.is/t/Yy53aWR0aD0yZTM7eC5maWxsUmVjdCgxNTAsMTUwKlModCkrMTUwLDE1MCwxNTAp)\n\n\n## Pre-requisites and first-time installation\n* Install `npm`\n* `sudo apt install npm`\n*  Get packages needed for server and clone the repository\n* `sudo apt install git virtualenv python-pip`\n* `git clone https://github.com/lionleaf/dwitter.git`\n\n## Setup\n#### **Linux**\n1. `make setup` (set up virtual environment)\n2. `source venv/bin/activate` (activate virtual environment)\n3. `make` (install dependencies and set up database)\n4. `python manage.py createsuperuser` (create admin account used below)\n5. `make run` runs the server. Use `make serve` instead if you're working inside a VM with port forwarding. (0.0.0.0:8000)\n6. Go to [http://localhost:8000/admin/sites/](http://localhost:8000/admin/sites/) and log in with admin account created above.\n7. Click on the one entry, and change both `domain name` and `display name` to localhost:8000.\n8. Make sure http://dweet.localhost:8000/ returns a django error. May not work in Firefox.\n\n#### **Windows**\n1. Download the latest [python3.7 release](\"https://www.python.org/downloads/windows/\").\n2. Without installing the setup, extract all the files in the a new directory such as `./python37`\n3. Set up virtual environment using the extracted interpreter: `virtualenv --python ./python37/python.exe venv`\n4. Activate the venv: `cd venv/Scripts \u0026\u0026 activate.bat`\n5. Get back in the main directory (`cd ../.. \u0026\u0026 make`) and use `make` command (install dependencies and set up database)\n6. Continue with the fourth step from **Linux setup**.\n\n## Other commands\n* `make migrations`\n* `make migrate`\n* `make lint`\n  * lints Python and JS files\n  * automatically fixes some JS issues (mostly whitespace-related)\n* `make shell`\n* `make backup`\n* `make restore-backup`\n\n\n# Dwitter API\n\n### Dweets\n```\nGET www.dwitter.net/api/dweets/  - list of the last 10 dweets\n\n       ?limit=100            - number of results to return, default 10, max 100 (subject to change)\n       \u0026offset=200           - offset page by 200 dweets\n       \u0026remix_of=123         - all remixes of 123\n       \u0026author=lionleaf      - dweets by author\n\n\nGET www.dwitter.net/api/dweets/123  - get details about d/123\n```\n\nLatest dweet: `https://www.dwitter.net/api/dweets/?limit=1`  (sorted by posted date by default)\n\n\n### Users\n```\nGET dwitter.net/api/users/lionleaf  - Show details about user 'lionleaf'.\n```\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flionleaf%2Fdwitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flionleaf%2Fdwitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flionleaf%2Fdwitter/lists"}