Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

CorentinLeGuen/grafolo49

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grafolo49

A GraphQL app for Loto6.49

Install venv and dependencies

Venv

python3 -m venv grafolo49

source venv/bin/activate or venv/Scripts/activate.bat

Dependencies

pip install -r requirements.txt

Run project

To tell Flask where to start : export FLASK_APP=app.py

And then flask run, you should have app running on localhost.

How to use

Access the app on http://localhost:5000/graphql and then, you can search draws as

query AllDraws {
  listDraws {
    success
    errors
    draw {
      draw_date
      number_1
      number_c
    }
  }
}

It is possible to limit the results by adding the parameter limit and to order by date with ordered boolean parameter:

query AllDraws {
  listDraws(limit: 2, ordered: true) {
    success
    errors
    draw {
      draw_date
      number_1
      number_c
    }
  }
}

By default, limit parameter is set to 10 and results are ordered by date (most recent draws first).

About

A GraphQL project for Loto 6.49 draws

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages