GithubHelp home page GithubHelp logo

pass-culture-browser's Introduction

pass-culture-browser

Coverage Status

C'est la version (browser) de l'application frontend du Pass Culture.

Il faut aller voir le README dans https://github.com/betagouv/pass-culture-main pour être informé des différentes lignes de commande associées à ce repo.

Note sur Yarn

Yarn est prometteur, on vous conseille de l'utiliser. Tâchez de l'installer globalement sur votre ordinateur (https://yarnpkg.com/en/docs/install), puis:

yarn

Variables d'environnements

A la racine de webapp créer un fichier env.local
Les variables disponibles pour l'application sont décrites dans le fichier src/utils/config.js

Tests

Tests Unitaires (Jest/Enzyme)

Lancer tous les tests

yarn test:unit
# Lancer les tests unitaires en local en mode rafraichissement auto
# yarn test:unit --watchAll

Lancer un seul fichier en mode watch

./node_modules/.bin/jest --env=jsdom ./<path>/tests/<fichier> --watch
# yarn test:unit ./path/to/file.spec.js --watch

Tests Fonctionnels/E2E (Testcafe)

Lancer tous les tests

pc reset-all-db
pc sandbox --name=industrial
yarn test:cafe

Lancer un seul fichier en ligne de commande depuis un environnement local

./node_modules/.bin/testcafe chrome ./testcafe/02_signin.js

Upgrade de la version

La commande yarn version va créée un nouveau commit de version, un nouveau tag et la version sera mise à jour sur la page Mentions Légales

yarn version
# yarn version --new-version x.x.x

Font Icons (Fontello)

Ajout d'icones

  • Ouvrir le site Fontello.com
  • Glisser/Déposer le fichier public/static/fontello/config.json dans la page du navigateur
  • Ajouter une/des icônes
  • Cliquer sur Download webfont (n)
  • Remplacer et committer le fichier public/static/fontello/config.json

Mise à jour

La commande ci-dessous permet de mettre à jour le dossier dans public/static/fontello avec la dernière configuration à jour

yarn fontello

Nous Contacter

pass-culture-browser's People

Contributors

abel-andre avatar arnoo avatar augnustin avatar g4vroche avatar ionlzr avatar ledoux avatar schawnndev avatar sixertoy avatar sofcalca 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.