Skip to content
/ VApp Public
generated from betagouv/template-nextjs

Automatiser l'identification d’aides potentiellement applicables pour un projet de collectivité

License

Notifications You must be signed in to change notification settings

betagouv/VApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VApp

GitHub last commit (branch) Libraries.io dependency status for GitHub repo

Développement

Créer un fichier .env basé sur .env.development :

cp .env.development .env`

Lancer le conteneur de BDD :

docker compose up

Installer les dépendences et lancer l'app :

yarn # to install dependencies
yarn dev # to run in dev mode

Ouvrir la page d'accueil http://127.0.0.1:3000/ and start playing.

Storybook

Use React DSFR Storybook : https://components.react-dsfr.codegouv.studio

Migrations

Pour les modifications de BDD :

Créer le fichier de migration et completer le up et le down :

yarn kysely migrate make MIGRATION_NAME

Executer la migration et mettre les types:

yarn kysely migrate latest
yarn kysely-codegen

Tests

# run unit tests with vitest
yarn test
# run storybook
yarn storybook
docker compose --env-file .env.test up

# build, serve and launch playwright interactive end-to-end tests
yarn e2e --ui

Ollama

Follow production logs:

journalctl -u ollama.service -f

Watch GPU usage:

watch -n 1 nvidia-smi

Pull a model:

curl http://localhost:11434/api/pull -d '{"model": "mistral-small:latest"}'

AT

Get token:

curl -X 'GET' \
'https://aides-territoires.beta.gouv.fr/api/connexion' \
-H 'accept: application/ld+json' \
-H 'X-AUTH-TOKEN: myAidesTerritoiresToken'

Projets connexes

Resources