remash

The idea for this project is to let reddit collaboratively write a book in a 24 hours.

View the Project on GitHub wisehackermonkey/remash

Remash

live book editor

by oran collins
github.com/wisehackermonkey
oranbusiness@gmail.com
20190106 updated 20200613

Project:

The idea for this project is to let reddit collaboratively write a book in a 24 hours. 
It works similar to collaborative editing on google docs.
This project uses docker to host the web server, that I manage maintain, 
To test it out open two tabs and type something, and see it replicate over to the other tab.

(Easiest) Run using docker

If you just want to try it out id recommend using play-with-docker.com

play-with-docker.com

Run using docker for everyone else

docker login
>docker run -it --rm -p 80:8080 wisehackermonkey/remash

Docker Run/Install

docker run -it --rm -p 80:8080 --name remash wisehackermonkey/remash

Deploy

docker run -d --restart=always --name remash -p 8080:2000 wisehackermonkey/remash

Deploy ARM (CURRENTLY NOT WORKING 20200929)

git clone https://github.com/wisehackermonkey/remash.git
cd remash
docker build . -t wisehackermonkey/remash:arm
docker login
docker push wisehackermonkey/remash:arm 
docker run -d --restart=always --name remash -p 2000:8080 wisehackermonkey/remash

The (hardway)

Install

pip install -r requirements.txt
run app in windows (CMD)
set FLASK_APP=main.py
set FLASK_ENV=development

flask run
run app in windows (POWERSHELL)
$env:FLASK_APP="main.py"
$env:FLASK_ENV="development"
flask run

Run app

>python main.py

in browser go to

in browser go to 
http://localhost:80
Type something into the text box
open another browser tab to 
http://localhost:80
and type something else you will see the stuff replicated across the browser tabs!

Bugs due to flask_socketio bug

bug is descripbed here

stackoverflow.com

TODO

Links: