Giter VIP home page Giter VIP logo

tictactoe's Introduction

Project Template for TicTacToe

Getting started with this project template. After this you should have the project up-and-running on a Digital Ocean droplet server.

DIGITAL OCEAN

Droplet server setup:

  • Create account on DigitalOcean -- Use referral...
  • Create or use existing SSH key (no passphrase)
  • Create droplet (512mb, Ubuntu 14.04)
  • Log into droplet via ssh
ssh root@<ipaddress>

When installing docker, use curl -ssL option

To establish ssh link (selecting SSH key did not work for me):

cat ~/.ssh/id_rsa.pub | ssh root@<ipaddress> "cat >> ~/.ssh/authorized_keys"

DOCKER

Docker setup and installation

  • MacOsX/Windows - install boot2docker. Follow online instructions.
  • Remember - docker only works in boot2docker console unless you add DOCKER… environment variables.
  • Create account on docker.com, refers to docker username

GITHUB

  • fork this project - clone fork to src/ruprojects/tictactoe directory, or where ever you keep your project sources.
  • ensure you have latest node/npm
  • edit dockerbuild.sh
    • line “docker build -t gulli/tictactoe ./dist/“
    • change gulli to
  • make sure docker is running (boot2docker)
  • run
./dockerbuild
  • run
docker push <yourname>/tictactoe"

On Digital Ocean server (production)

docker run -p 80:8080 -d -e "NODE_ENV=production" <yourname>/tictactoe

Navigate to http://yourServerIpAddress and you should have yeoman landing page.

Project backlog

  • Can update latest version in production by push of a button

Including changes to data structure.

  • Can get feedback on failing tests and diagnostics

    Commit stage / continuous integration.

  • Can play tic-tac-toe against another user

Implement using TDD Acceptance TDD Controller TDD DOM - TicTacToe directive with TDD Server side, API TDD

  • Can play-back any given game to see how it was played

Use event sourcing - record every user interaction

  • Can get an email when I win a match

Implement an acceptance test, using test double to simulate email sending

  • Can downgrade to selected version by push of a button

Implement rollback, including down migrations

  • Can playback old games after data structure has changed

Database migration

  • Can see how many users played Tic-Tac-Toe in a given period

Metrics and monitoring

  • Can know how many users our application supports on given hardware

Automated capacity testing

  • Can be sure that latest version in production supports happy path after upgrade

Acceptance test through UI Acceptance test through API

  • Can update to latest version with zero downtime

Blue/Green deployment and testing

  • Can be sure that deployment is not continued if key resources are missing

Env smoke tests Auto rollback

  • Can be sure that deployment is not continued if configuration parameter is not set

Env smoke tests Auto rollback

  • Can continue playing even if the whole world is playing back games

CQRS - separate deployment for playback

=== More stories for consideration

  • Can provision a new environment in cloud (Digital Ocean) with minimal input. Script server provisioning. Droplet API

tictactoe's People

Contributors

stefaneg avatar thorrik58 avatar valgeirb avatar

Watchers

 avatar James Cloos avatar  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.