All related backend file are in the API directory.
All the backend data are readonly, so during frontend development, you just use
the production's backend/
Project was created with the recommended method npm init vue@latest
, and not
with the vue cli.
It was created in a subdirectory "vue-thacer"
cd vue-thacer
npm install
npm run dev
npm run build
See below the details, and don't hesitate to ask for help.
The vue team recommends Volar and recommends to disable or uninstall Vetur.
Install the 3 "volar", "prettier - code formatter", and "eslint" plugins.
Prettier:
Eslint
I am not expert in vscode and don't use it. This seems to work. As always, don't hesitate to suggest improvements.
in preferences :
{**/*,*}.{js,ts,jsx,tsx,vue,css,scss,html,json,cjs}
)Fix all console warnings or errors before committing.
Fix all eslint warnings or errors before committing.
Fix all IDE warnings or errors before committing.
Always develop with the devtools open.
Follow the 2 (at this date) vue best practice :
I chose to use them as svg, not as font, to win some bundle size. If needed to switch in the future, see https://stackoverflow.com/a/63653277/1657853
Flow : we create branch and PR in GitHub. We squash commit. Ask someone.
Use the standard commit naming "like a title and imperative" for single commit, squashed commit, and PR names.
Short and descriptive
Capitalized
Not end with period
In imperative present tense
Example for single commit : Implement access right management
Example for Squashed commit and PR name :
Implement access right management and rewrite the API accordingly
Description :
Access right manamgement implmentation had to be done like blabla, in this place, because blablabla.
It needed a rewrite of some routes of the API because blablabla. These routes are blablabla.
see https://ww.blablabla.co/blabla
Example for comment :
Hey Gerard, could you double check the re-writing of the url for the user infos route ? I may have miss some cases.
Create a new issue with the "deployment" template/button, and follow the instructions in this issue