Giter Site home page Giter Site logo

dojo-europe's Introduction

Dojo World Edition® starter project

Hey everyone, welcome to the biggest Dojo yet! We have 25 cities across Europe (and a few other places) all organizing a local Dojo and this project will (literally) connect all of us together.

Your task will be to make a map of the world using ReasonReact, send your github username to our backend and get the location of everyone else to draw as dots on the map.

To draw the map you'll be binding to react-simple-map, which has a very useful example here.

To get the locations of everyone, you should send a GET request to https://immense-river-25513.herokuapp.com/locations and you'll receive an array of {username: string, location: (lat, long)} (check Fetcher.rei).

To send your username send a POST request https://immense-river-25513.herokuapp.com/add-location with the body being just a string that's your username. The backend will figure out your location and store it.

hint hint: You should probably do some sort of polling at a regular interval to get the data as people finish the dojo ;)

This starter project only contains a bit of hairy fetching logic with promises, all you need to care about is calling fetchGet and fetchPost.

All deps are already setup so you can just install npm install. Then run the build watcher npm run watch Finally start a static server npx serve (with npm5/6) or python -m SimpleHTTPServer and go to the localhost address (localhost:5000 or localhost:8080 depending).

And please, don't be shy and ask questions! The organizers have the answers to everything.

dojo-europe's People

Contributors

bsansouci avatar haroenv avatar

Watchers

 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.