Git Product home page Git Product logo

egapro's Introduction

EgaPro

pipeline status Build Status codecov

Calcul de l'indexe de l'égalité homme / femme dans les entreprises

Lancer le projet avec docker

Ajouter le fichier .env à la racine du projet:

cp .env.sample .env
cp yarn.lock packages/api
cp yarn.lock packages/app

Y modifier les variables d'environnement nécessaires, comme par exemple les accès au serveur kinto, au serveur de mail...

Puis lancer les conteneurs:

docker-compose up --build

Une fois que le message egapro_init-kinto_1 exited with code 0 est affiché dans le terminal, le site est accessible sur http://localhost:8080.

Contribuer au projet

Pour contribuer au projet et avoir de l'auto-reload de l'application et de l'API lors d'un changement de fichier, ils ne sont pas lancés via docker, mais directement avec yarn. Kinto, la base de donnée et memcache sont eux toujours lancés (automatiquement) via docker-compose:

yarn install

Ensuite pour démarrer le frontend :

yarn start

Et le site est accessible sur http://localhost:3000

Tests

Integration

$ yarn start
#
# In another terminal
$ cd optional/e2e
$ yarn
$ yarn test

End Points

Action API body Réponse
GET api/version { version: string }
POST api/indicators-datas { } {id: string}
PUT api/indicators-datas/{id} { id: string, data: string} {id: string, data: string}
GET api/indicators-datas/{id} {id: string, data: string}
POST api/indicators-datas/{id}/emails { email: string } status = 200 ou 400

Release policy

Auto

Trigger a custom build on Travis (in the "More options" right menu) on the master branch with a custom config:

env:
  global:
    - RELEASE=true

You can change the lerna arguments though the LERNA_ARGS variable.

env:
  global:
    - LERNA_ARGS="major --force-publish --yes"
    - RELEASE=true

Manual

You need an Github token to release.

#
# Bump, push to git and publish to npm
$ GH_TOKEN=${GITHUB_TOKEN} yarn lerna version

#
# You might want to add a Gif to your release to make it groovy ;)

egapro's People

Contributors

freddy03h avatar magopian avatar renovate[bot] avatar vicmartinezp avatar tglatt avatar socialgroovybot avatar auremie avatar douglasduteil avatar cberthou avatar yohanboniface avatar virasack avatar dependabot[bot] avatar n1k0 avatar eric-hei avatar jebay 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.