Espace Partenaires is a tool that makes it easy to integrate a MonComptePro button.
It allows you to manage access tokens, the name and description of the project, the URLs where the login button will appear and the authorization request.
- docker et docker compose
- make
- node js / npm (pour le front)
Install locally the application:
git clone [email protected]:betagouv/espace-partenaire.git
$ npm install
$ npm run dev # will do a docker compose up !
$ npm build
$ npm start
Launch backend
make sb
You can access the project here : http://localhost:3000/welcome
If you want to launch a the front served by the backend:
make f
You can see the static front on http://localhost:3000
Launch the project with another node server locally (not on docker this time):
make sf
You can access it on http://localhost:3001/ :
flowchart LR
subgraph EspacePartenaire
subgraph Front
ViteReact
end
subgraph Back
BuiltFront --> NestStatic
subgraph NestJs
Api --> Controller
NestStatic --> Api
end
end
Controller --> PSQL[(PSQL)]
end
User --> BuiltFront
Application? --> Api
There are two main subrepos in the EspacePartenaire project: back and front.
The frontend is built with Vite React. The build result is then moved to the backend repository and served with Nest's serve static property.
Start front-end and back-end applications, then launch:
make f
Enjoy ! ✨