Giter VIP home page Giter VIP logo

hamber-place's Introduction

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

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:

python3 manage.py createsuperuser

Navigate to 127.0.0.1:8000/admin to log in.

hamber-place's People

Contributors

r-k-g avatar subwayman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.