GithubHelp home page GithubHelp logo

betagouv / aplus Goto Github PK

View Code? Open in Web Editor NEW
7.0 8.0 12.0 9.04 MB

Administration+

Home Page: https://beta.gouv.fr/startup/aplus.html

License: MIT License

Scala 69.57% HTML 18.59% CSS 2.73% JavaScript 0.53% Shell 0.28% Dockerfile 0.14% TypeScript 8.11% Python 0.05%

aplus's Introduction

Administration+

Code

Commandes

⚙️ Pré-requis ⚙️

  • Java
  • Docker
  • SBT
  • L'extension VSCode metals pour scala (non obligatoire mais conseillée !)

🗝️ Installer le projet clés en main 🗝️

Cloner le projet :

git clone https://github.com/betagouv/aplus
cd aplus

Pour lancer le projet aller dans le dossier develop/aplus puis lancer une base de donnée PostgreSQL avec docker-compose :

cd develop/aplus
docker-compose up db

Se connecter à la base de données avec Docker (pour connaître le nom du container, exécuter la commande docker ps):

docker exec -it <NOM_DU_CONTAINER_DE_LA_BD> psql -U aplus

Dans la console PSQL lancer la commande \d pour vérifier si des relations existent. Si aucune relation n'existe lancer la commande suivante puis quitter la console PSQL:

CREATE EXTENSION IF NOT EXISTS "unaccent";
\q

Ajouter un dump de la base de données à votre projet. Pour cela prendre contact avec l'équipe Administration+ qui vous enverra le fichier correspondant ([email protected] ou directement sur Mattermost). Ajouter le fichier à la racine du projet puis lancer la commande suivante (des erreurs apparaîtront, ne les prenez pas en compte !):

docker exec -i <NOM_DU_CONTAINER_DE_LA_BD> pg_restore -U aplus -d aplus < <NOM_FICHIER_DUMP>

Copier run.sh.example dans run.sh :

cp run.sh.example run.sh

Lancer le projet :

npm install
chmod +x run.sh
./run.sh
run

✨ Enjoy ✨ (si vous tombez sur l'erreur "database 'default' needs evolution", cliquez sur "apply this script now") !

http://localhost:9000

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.