Git Product home page Git Product logo

moneymaker's Introduction

Build Status

moneymaker

Find a never-extracted sequence for SuperEnalotto. Without any reason, it will work.

  • Grab all the extracted sequence since 1997
  • Save the sequence in a CSV file
  • Insert the sequence in an indexed structure. We want to know if a seuqence exists, and how many times it has been extracted
  • Write a CSV with the sequences ordered by how many times have been extracted
  • Find a sequence that has never been extracted

moneymaker's People

Contributors

totomz avatar

Watchers

James Cloos avatar  avatar

moneymaker's Issues

Add a landing page

Why

We want our great service to be used by other people! We need a way for them to interact with this great tool!

What to do

  • Add a landing page as static content
  • This page should have a button that if pressed opens a pop-up with a sequence generated by magicnumber

Connect to Redis

Why

To try Redis on Heroku and to collect some statistics

What to Do

  • Launch Redis on Heroku
  • Add a counter to track the number of request received by single ip

Deploy on Heroku

Why

The backend and the frontend will run on heroku, so...

What to do

  • Deploy the application on Heroku exposing an endpoint HTTP GET /magicnumbers that returns a JSON response {score: <float[0,100]>, numbers:[<integer[1,90]..5>]}

Setup redis

Why

Test redis on Heroku

What to Do

Deploy a redis on heroku, and test the connection to it locally and from remote

Limit 4 requests per user per day

Why

We run our service under Acceptable Use Policy - each user can run up to 4 requests per day

What to Do

  • Add a fingerprinting on the client
  • Send the fingerprint as a cookie to each request to the server
  • After 4 requests, the bakend reject the request. In this case the user can retrieve the list of its number calling a new endpoint at HTTP GET /mynumbers

Client fingerprint

Why

Test the browser fingerprint. Also, we want to limit the number of seuqence up to 4 per day

What to do

When the client requires /magicnumbers.json, the client should send a fingerprint of the browser. The server shall then store

  • this fingerprint
  • the ip of the client
  • the date and time

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.