This is a web app making full use of the ERS API it provides:
- Search UI
- News
- Profile
- Interests
- ...
to change the api source add a .vue.local
to overwrite the APP_VUE_ERS_API
value
In order to have the best experience while developping install:
- ESLint
- Vue2 Snippets
- Vuetify-vscode
Set also the following editor configuration:
"[javascript]": {
"editor.tabSize": 2
},
"[vue]": {
"editor.tabSize": 2
},
"eslint.validate": [
"javascriptreact",
{
"language": "javascript",
"autoFix": true
},
{
"language": "vue",
"autoFix": true
},
{
"language": "vue-html",
"autoFix": true
}
],
"editor.formatOnSave": true,
"eslint.autoFixOnSave": true
This will ensure that there is no surprise with code linting
If we decide to move to typescript, we will need the Vetur extension
A Vue.js project
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run serve
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
# run unit tests
npm run unit
# run e2e tests
npm run e2e
# run all tests
npm test
For detailed explanation on how things work, checkout the guide and docs for vue-loader.
- Commit and push code to github
ssh
to Infomaniak- go to the Search UI folder:
cd search
- Pull changes from github master:
git pull origin master
- Build website:
npm run build
- Check that everything works ;)