Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/subwayman/hamber-place
A replication of reddit's r/place april fools experiment, for private use. Created for Eric Hamber Secondary.
https://github.com/subwayman/hamber-place
Last synced: 12 days ago
JSON representation
A replication of reddit's r/place april fools experiment, for private use. Created for Eric Hamber Secondary.
- Host: GitHub
- URL: https://github.com/subwayman/hamber-place
- Owner: SubwayMan
- Created: 2022-04-08T23:24:52.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-23T18:16:12.000Z (over 2 years ago)
- Last Synced: 2024-11-08T04:24:06.558Z (2 months ago)
- Language: Python
- Size: 190 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Place
A replica of r/place for educational use.
### Backstory
This project was whipped up in the latter half of April 2022 for Eric Hamber Secondary's programming club. The idea of the activity was to create bots that drew on the canvas - this was done through copying cURL requests in the browser and converting them to Python calls.
### Preview
![Image1](./showcase/hamberplace.png)
### Disclaimer
This project is at an Alpha level of readiness. The code is not sufficiently organized and the setup instructions provided in this README may be outdated.
This code is currently only published for ease of access by its authors.### Setup
Note that windows users should use WSL.
Ensure you have `pipenv`, `redis` installed.
Clone the repository, then run `pipenv shell` inside the root folder.
When pipenv has finished setup, run `pipenv install`.### Starting the server
Ensure that `pipenv shell` has been run, then run:
```
python3 setup.py
python3 manage.py migrate
python3 manage.py runserver
```
`setup.py` only needs to be run once upon cloning, while `migrate` should be run after every pull and
database structure update.To allow other computers to access the site over LAN, run:
```
python3 manage.py runserver 0.0.0.0:8000
```
Navigate to `127.0.0.1:8000/` to see the canvas.### Create an admin user
Run the following:
```bash
python3 manage.py createsuperuser
```
Navigate to `127.0.0.1:8000/admin` to log in.