Giter Club home page Giter Club logo

gip-inclusion-website's Introduction

Site Web du GIP de l'inclusion

Prérequis

  • Python 3.10
  • Postgreql 14.x.

Installer les pre-commit hooks

pre-commit install

On peut faire un premier test en faisant tourner :

pre-commit run --all-files

Installation

Le projet peut se lancer en local ou avec Docker.

En local

Créer un environnement virtuel

# Configurer et activer l'environnement virtuel
python -m venv venv
. venv/bin/activate

# Installer les packages requis
pip install -r requirements.txt

Copier les variables d'environnement

cp .env.example .env

Lancer le serveur

python manage.py runserver

Lancer les migrations

python manage.py migrate

Effectuer les tests

D'abord installer les dépendances de test :

pip install -r requirements.txt

Les tests unitaires peuvent être lancés avec make test-units, les tests E2E avec make test-e2e, les deux avec make test.

Pour les tests E2E, si vous n'utilisez pas Docker, il vous faudra Firefox et geckodriver accessibles sur votre machine pour lancer les tests E2E. Sur MacOS, vous pouvez les installer via brew avec la commande: brew install geckodriver.

Vous pouvez également générer un rapport sur la couverture de tests :

coverage run manage.py test --settings config.settings_test

via Docker

Copier les variables d'environnement

cp .env.example .env

Lancer les containers

docker-compose up

Premier lancement

Pour initialiser le site avec notamment la page d'accueil au bon format :

python manage.py loaddata cms/fixtures/fixtures.json

gip-inclusion-website's People

Contributors

sebastienreuiller avatar louije avatar scttpr avatar jbuget avatar madjid-asa avatar francoisfreitag avatar maxchene avatar

Stargazers

 avatar Vincent Porte avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

maxchene

gip-inclusion-website's Issues

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.