Skip to content

Latest commit

 

History

1,499 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Référentiel National des Bâtiments (RNB)

Bienvenue sur le répertoire de code du site du Référentiel National des Bâtiments (RNB)

Si vous souhaitez accéder au répertoire contenant les ressources concernant la construction du standard du référentiel dans le cadre du groupe de travail CNIG sur le thème du bâiment, c'est par ici

Si vous souhaitez accéder au répertoire de code contenant le coeur technique du projet (imports, API, logique métier), rdv ici.

Getting Started

This is a Next.js project bootstrapped with create-next-app.

First, install the dependencies:

pnpm i

Ask a colleague to send you his .env.local file.

Then run the development server:

pnpm dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.tsx. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Configuration

In order to run the project, you will need to specifiy some information, which can be done using a .env file. This file will have to hold the following information:

  • NEXT_PUBLIC_API_BASE: the url of the bat-id api

So your .env file should look like something similar to:

NEXT_PUBLIC_API_BASE=my-url

The file should be placed at the root folder of your local copy of the project.

Deployement

This Next.js app is deployed using the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

Tests

Command Description
pnpm e2e Run all tests
pnpm e2e-ui Run tests in interactive mode

Note: Tests currently run against the staging database. Any change in staging can cause test failures. If CI tests suddenly break without any code change, this is worth investigating. This setup is not optimal but acceptable for now. Future improvements may include a dedicated test database or running the RNB-coeur project within the RNB-site CI for a fully controlled environment.

License

Distributed under the Apache 2 License. See LICENSE for more information.

About

Le site public du Référentiel National des Bâtiments

Resources

Stars

4 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages