How hugoofilipe/fugaemfamilia-backoffice works
Project type and purpose
• This is a single-page front-office web application (“fuga em familia – frontoffice”) built with Vue.js and JavaScript.
• It serves managers to manage clients, bookings, ads, and automated messages. It’s purely a frontend, consuming a separate backend API.
File structure
• Top-level config files: .env.*, vue.config.js, babel.config.js, jsconfig.json, package.json.
• Public assets: public/index.html.
• Source code: src/ with App.vue, main.js, a components/ tree, pages/ tree, router.js. Standard Vue CLI MVC-style organization (components vs pages vs assets).
• Build output: dist/ (static HTML, CSS, JS bundles, images) ready to be deployed on a cPanel subdomain.
• CI/CD: .github/workflows/deploy.yml orchestrates build & deploy on push to master.
README for additional insights
• Dev: npm run serve → hot-reload local server (localhost:8080).
• Build: npm run build / npm run build:prod → populates dist/.
• Deployment: GitHub Actions auto-deploys on push; manual pull via cPanel.
• Runtime: static files served under subdomain backoffice.huna.pt; the SPA calls backend APIs (e.g. /api/validate) at a separate host (CORS enabled).