Giter Site home page Giter Site logo

socket-pixels-server's Introduction

Server that uses Web Sockets to create a room for r/place-esque canvas at Socket-Pixels

DetailsKey FeaturesHow To UseRelatedLicense

Details

This is a simple clone of the r/place canvas implemented in HTML, CSS, and JavaScript. The r/place canvas was a collaborative art project on Reddit that allowed users to place colored pixels on a large canvas. This clone project aims to recreate the canvas functionality and allow users to draw on a similar canvas.

Key Features

  • Custom color selection
    • Instead of the fixed 16 colors in r/place, select custom colors when creating a room. It's like a box of crayons (but better ofc)
  • Custom timeouts
    • Set custom timeouts, restricting them on how long they'll have to wait between two pixel places.
  • IP-based identification
    • Users are identified using their IP addresses so that timeouts can be implemented. Just to try and (hopefully) keep things under control.
  • Custom grid sizes
    • Select custom grid sizes for the canvas.
  • Local database
    • To keep things simple and make this server locally hostable, I used a database that stores data locally (tindogb) so that you don't have to worry about setting up a cloud database.

How To Use

To clone and run this application, you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:

# Clone this repository
$ git clone https://github.com/chakri68/socket-pixels-server

# Go into the repository
$ cd socket-pixels-server

# Install dependencies
$ yarn install

# Run the app
$ yarn start

Note I recommend using yarn for faster downloads (more) TingoDB code can be reused with MongoDB (more)

Related

Socket-Pixels - Svelte Frontend for Socket-Pixels

Support

Donate using Liberapay

License

MIT


socket-pixels-server's People

Contributors

chakri68 avatar delta68 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.