silently

silently

Shifumi: a rock-paper-scissors made with Elixir/Phoenix and React/Redux

Hello elixers,

I am glad to release the demo https://shifumi.io/ of a side project I’ve been working on for a few months, both with its source code.

It’s a variant of the rock-paper-scissors game (with an additional shape, well, that only loses to paper). Playing it requires logging in through an auth provider (facebook, google, twitter or github). Game syncing is done through Phoenix channels and, as a matter of fact, if you’re the only one connected, you won’t be able to start a match!

I expect there may be issues with the demo (not tested with many people nor on many different devices) especially with UX. Please open issues on github and I’ll try to fix the blocking ones (but I am unsure if I will engage in improving the demo).

The main intent here is releasing the code and hopefully to provide an interesting resource to others, and also to open discussions on the implementation. Please share your comments or advice or questions about the code!

My initial motivation with this project was to train with Elixir and Phoenix on a real, even very simple, project. I have also spend quite some time packaging it as a progressive web app, relying on React/Redux. An additional motivation was to create almost everything on my own (almost nothing may be more true knowing the amount of tools/libs/software used) from design (oops) to hosting/deployment.

Some parts that may be of interest:

  • tests
  • async Redux actions through channels
  • Service Worker implementation and an attempt to comply with PWA requirements
  • the GameServer and Dating modules
  • various config files: rollup, brunch, edeliver
  • sequencer.js, CSS animations and transitions
  • Ueberauth and Mogrify examples

The production environment is a 5$/month digitalocean Ubuntu droplet, using Nginx and Let’s Encrypt.

Additional info is provided in the project readme GitHub - silently/shifumi: Rock-paper-scissors in Elixir/React (see https://shifumi.alt-g.fr/) · GitHub

I hope you’ll enjoy it!

Where Next?

Popular in Discussions Top

ricklove
I was just introduced to Elixir and Phoenix. I was told about the 2 million websocket test that was done 2 years ago. From my research, t...
New
jesse
Hi everyone, I hesitated to post this here because I don’t want you to think I’m spamming, but I’ve been working on a Platform-as-a-Serv...
New
AstonJ
I’ve just started the Phoenix part of the utterly brilliant online course by @pragdave. On generating the Phoenix app he uses the --no-ec...
New
rms.mrcs
A couple of days ago I was discussing with a friend about different approaches to write microservices. He said that if he was going to w...
New
MarioFlach
Hello, I want to share a project I’ve been working on for a while: https://github.com/almightycouch/gitgud Background Some time ago I ...
New
tmbb
This is a post to discuss the new Phoenix LiveView functionality. From Chris’s talk, it appears that they generate all HTML on the serve...
342 18584 126
New
shishini
I think this twitter post and youtube video didn’t get as much attention as I hoped I am still new to Elixir, so can’t really judge ...
New

Other popular topics Top

KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36654 110
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New

We're in Beta

About us Mission Statement