-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Uğur Güney edited this page Apr 6, 2019
·
10 revisions
- file:///C:/Users/veliu/Documents/repos/cooperat-io/client.html
Command to list the nicknames of players:
cat main.log | sed -rn "s/.*, (\w+) .*/\1/p" | sort | uniq | less
# connect to my server from desktop/laptop
ssh ugur_ec2
# Update package list
sudo apt update
sudo apt install software-properties-common
# Add repository from where to pull Python 3.7 binary
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
# Install Python 3.7
sudo apt install python3.7 python3.7-venv
# now `python3.7` should run Python3.
# Create Python virtual environment for the project
mkdir ~/envs # if not exists
python3.7 -m venv ~/envs/cooperatio
source ~/envs/cooperatio/bin/activate
# test existence of pip in new environment
which pip # returned `/home/ubuntu/envs/cooperatio/bin/pip`
sudo pip3 install --upgrade pip
# install the only requirement
sudo pip install websockets # I shouldn't have to need `sudo` here >:(
cd ~
git clone https://github.com/vug/cooperat.io.git
cd cooperat.io
source ~/envs/cooperatio/bin/activate
python server.py
# Create/Edit conf
sudo vim /etc/nginx/sites-available/cooperatio
# Create soft link (once)
sudo ln -s /etc/nginx/sites-available/cooperatio /etc/nginx/sites-enabled/cooperatio
# test conf
sudo nginx -t
# restart nginx
sudo systemctl restart nginx
- asyncio — Asynchronous I/O — Python 3.7.2 documentation
- Canvas API - Web APIs | MDN
- https://websockets.readthedocs.io
Game Design
- Game Design Patterns for Building Friendships - YouTube
- Making Your First Game: Minimum Viable Product - Scope Small, Start Right - Extra Credits - YouTube WebSockets
- https://websockets.readthedocs.io/en/stable/intro.html#common-patterns
-
Debugging Websockets via
logging
- Similarly, Debugging Asyncio via Logging
- Socket Programming in Python (Guide) – Real Python Async
- Async IO in Python: A Complete Walkthrough – Real Python
- A guide to asynchronous programming in Python with asyncio
- Async IO in Python: A Complete Walkthrough – Real Python
- Python & Async Simplified - Aeracode
- Speed Up Your Python Program With Concurrency – Real Python
- ghost game ideas - Google Docs
- WebSocket proxying
- How To Upgrade to Ubuntu 16.04 LTS | DigitalOcean
- Yury Selivanov - Asyncio in Python 3.7 and 3.8 - YouTube
- Upgrade main conda environment from 3.6 to 3.7:
conda install python=3.7
- How to commit? · Issue #375 · eamodio/vscode-gitlens GitLens extension does not have commit. :-) Use default, included "Source Control" panel for commits.
- Specific linters Find flake8 settings to increase line length limit.
- black not producing flake8 compatible code · Issue #113 · ambv/black black allows longer lines than flake8 expects.
- Passing additional arguments to the connection handler (original documentation)
- Python3, Using some shared state in 2 async methods - Addshore