Code Monkey home page Code Monkey logo

go-xke's Introduction

Le serveur'X

Objectif

Cet atelier a pour objectif de vous faire coder en go et de découvrir le langage.

Le principe est simple. Nous vous proposons un jeu où vous êtes un serveur dans un bar. Vous devez passer les commandes des clients et les faire payer ses boisons. Nous avons codé pour vous le bartender, le ordermaker et le client. On vous donne le serveur avec des méthodes à implémenter et des tests unitaires.

Les pre-requis

  • installation de Go : https://golang.org/dl/
  • creation du workspace Go : un repertoire contenant src/ , pkg/ et bin/
  • export de la variable $GOPATH pointant vers le workspace Go
  • create un repertoire $GOPATH/src/github.com/vil-coyote-acme/
  • executer les commande:
$ git clone https://github.com/vil-coyote-acme/go-xke.git
$ cd go-xke
$ ./init.sh

1. Le server et la communication http et parsing json

Basculer sur la branche step-1 :

$ git checkout step-1

Allez sur la console et executez

$ go get github.com/vil-coyote-acme/go-concurrency/commons
$ go get github.com/stretchr/testify/assert

Modifier les méthodes de server.go et registration.go. Utiliser les TODO dans le code pour faire passer les tests

La suite par ici: https://github.com/vil-coyote-acme/go-xke/tree/step-1

Plus d’infos :

2. Les goroutine, les channels et la communication concurrente

Basculez sur la branche step-2 :

$ git checkout step-2

La suite par ici: https://github.com/vil-coyote-acme/go-xke/tree/step-2

go-xke's People

Contributors

jeromedoucet avatar dicaormu avatar seblm avatar

Watchers

Jean-Baptiste Claramonte avatar James Cloos avatar  avatar Damien BARON avatar  avatar

Forkers

dicaormu

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.