Coder Social home page Coder Social logo

nucleus's Introduction

Nucleus

Nucleus: central part about which other parts are grouped or gathered; core:

Description

Ce projet a pour but d'agréger les données d'une à plusieurs API pour les stockées dans la solution Supabase. Nous utilisons les données des API suivantes :

Supabase nous permet de redistribuer ces données sous forme d'API.

Imports sur la base de staging

Pour effectuer un test en local, il faut créer un fichier .env, et y copier le contenu de .env.sample. Ensuite, il faut renseigner la clef de la base de staging (accessible sur le site de Supabase, dans Settings > API > service_role).

Dans le fichier index.ts, il y a des alias pour chaque tables.

Par exemple, pour effectuer un import sur la table correspondant aux groupes, dont l'alias est "g", il suffit de faire yarn start -g.

Accès aux données

Afin d'accéder à nos données, vous pouvez utiliser notre clef publique Supabase :

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTY0MTgyNDM5OSwiZXhwIjoxOTU3NDAwMzk5fQ.N2JnZEXm3362MXnKoXnPxDZF-STpj6Wn65g2oWcsl7A

Exemple de requête pour afficher les sigles de la table "groupe parlementaire" :

curl 'https://oyjfimltcpwigbbvotqk.supabase.co/rest/v1/GroupeParlementaire?select=Sigle' \
-H "apikey: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTY0MTgyNDM5OSwiZXhwIjoxOTU3NDAwMzk5fQ.N2JnZEXm3362MXnKoXnPxDZF-STpj6Wn65g2oWcsl7A" \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTY0MTgyNDM5OSwiZXhwIjoxOTU3NDAwMzk5fQ.N2JnZEXm3362MXnKoXnPxDZF-STpj6Wn65g2oWcsl7A"

Ci-dessous la liste des tables que nous utilisons :

  • Activite
  • Depute
  • Depute_OrganismeParlementaire
  • GroupeParlementaire
  • Ministre
  • Ministere
  • OrganismeParlementaire

nucleus's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar kevinbacas avatar maximerivolet avatar pierretusseau avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

johndpope

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.