Commit 6a52852c authored by David Foucher's avatar David Foucher

Add infos in README

parent 5639a52b
Pipeline #3199 passed with stage
in 2 minutes
......@@ -26,7 +26,25 @@
- Activate the virtualenv : `source .venv/bin/activate`
- Then: `make develop`
## Run a simulation
### Add env var
```
VERSION=api-vX.X.X
OLD_VERSION=api-vX.X.X
BACK_VERSION=backoffice-vX.X.X
LBF_CHARMAP="sA,4B,RC,cD,oE,gF,yG,wH,mI,HJ,7K,EL,aM,YN,XO,8P,GQ,BR,kS,iT,IU,AV,TW,DX,pY,JZ,2a,Lb,Mc, d,de,Cf,Qg,fh,ri,Pj,Nk,Vl,vm,0n,Ko,ep,jq,Zr,9s,ht,Fu,tv,-w,Ux,1y,xz,30,u1,52,q3,W4,S5,66,n7,b8,O9,_+,l/,z "
CATALOG_USER={ASK-YOUR-LBF-CATALOG-API-USER}
CATALOG_KEY={ASK-YOUR-LBF-CATALOG-API-KEY}
CATALOG_URL=https://labonneformation.pole-emploi.fr/api/v1/detail
TREFLE_GIT=https://git.beta.pole-emploi.fr/open-source/trefle.git
GITLAB_TOKEN={ASK-GITLAB-TOKEN}
```
### Local API server
Launch dev mode server: `trefle serve`
### Run a simulation
Swagger API DOC : https://app.swaggerhub.com/apis/labonneformation/moteur-financement-formation
......@@ -47,10 +65,12 @@
## Run the backoffice in dev mode
In backoffice/vue.config.js:
### configure
To connect the front to your API server in dev mode, change in backoffice/vue.config.js:
`proxy: 'https://trefle.beta.pole-emploi.fr/0.7/'` for `proxy: 'http://127.0.0.1:3579/`
change `proxy: 'https://trefle.beta.pole-emploi.fr/0.7/'` for `proxy: 'http://127.0.0.1:3579/`
then
### launch
cd backoffice
npm install
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment