YunoHost portal using Nuxt.js
Find a file
2023-11-14 18:34:35 +01:00
assets assets: add svg icons 2023-11-08 19:04:55 +01:00
components style: misc update of some of aleks propositions 2023-11-14 18:34:35 +01:00
composables handle 401 depending on settings.public and route.meta.public 2023-09-04 16:49:13 +02:00
debian debian: use 'generate' instead of 'build', because this seems to be the way for single page apps ? 2023-07-30 18:46:26 +02:00
layouts style: misc update of some of aleks propositions 2023-11-14 18:34:35 +01:00
locales i18n: add language metadata in locale file so translators can change it 2023-11-14 17:04:18 +01:00
maintenance i18n: add generated locales list file 2023-11-14 17:05:51 +01:00
middleware router: fix infinite redirect 2023-10-17 14:47:46 +02:00
pages style: misc update of some of aleks propositions 2023-11-14 18:34:35 +01:00
plugins add validation i18n messages 2023-08-23 14:34:04 +02:00
utils add pick + exclude object util 2023-08-28 19:12:46 +02:00
.eslintrc.cjs add eslint-plugin-vuejs-accessibility 2023-08-06 16:24:37 +02:00
.gitignore Initial commit 2023-07-14 22:15:32 +02:00
.prettierrc maintenance: update deps + add prettierrc file 2023-11-14 17:08:30 +01:00
app.vue style: misc update of some of aleks propositions 2023-11-14 18:34:35 +01:00
docker-compose.yml Add Dockerfile + docker-compose.yml to ease up development ? 2023-07-27 00:38:02 +02:00
Dockerfile Add Dockerfile + docker-compose.yml to ease up development ? 2023-07-27 00:38:02 +02:00
error.vue error: use CustomLogo component for error page 2023-11-07 18:07:14 +01:00
i18n.config.ts i18n: add i18n config file to setup fallback locale 2023-11-13 17:52:50 +01:00
nuxt.config.ts nuxtconfig: use generated locales list 2023-11-14 17:06:30 +01:00
package.json maintenance: update deps + add prettierrc file 2023-11-14 17:08:30 +01:00
README.md Update dev instructions 2023-07-29 19:32:16 +02:00
spa-loading-template.html loader: add custom app loader with ynh logo 2023-11-07 18:00:26 +01:00
tailwind.config.js use explicit class names for tailwind inspector 2023-07-25 23:11:32 +02:00
tsconfig.json Initial commit 2023-07-14 22:15:32 +02:00
yarn.lock maintenance: update yarn.lock file 2023-11-14 17:08:56 +01:00

POC for new YunoHost portal

Develop (using Docker)

  • Install Docker
    • cf these instructions to add Docker's apt repository
    • and then apt update && apt install docker-ce
  • Install Docker-compose
    • pip3 install docker-compose
  • Inside your Yunohost LXC/ynh-dev/???, make sure the new yunohost-portal-api service is running and corresponding route is in nginx config
  • Important: Inside your Yunohost machine, enable CORS from your dev front-end:
    • echo "http://127.0.0.1:3000" > /etc/yunohost/.portal-api-allowed-cors-origins
    • systemctl restart yunohost-portal-api
  • Back to Yunohost-portal's repo: define what's the IP / domain of your test LXC where the API lives (here, for example, yolo.test which is define in /etc/hosts):
    • echo 'NUXT_PUBLIC_API_IP=yolo.test' > .env
  • docker-compose up -d : will rebuild the docker on the first time, then launch it
  • Check docker-compose logs -f : should show that nuxt/nitro is building stuff then serving it on port 3000
  • Access http://127.0.0.1:3000 from your browser

Develop (manual / directly on your host machine)

  • Basically the same stuff, but ignore docker-related steps. Instead:
  • You'll need NodeJS 18.14 (or higher) and yarn
  • Run yarn install
  • Run yarn dev