A codebase for check-zimmer.de project
The project uses Vue on dashboard and on public pages.
Dashboard is completely built on Vue
Public pages are hybrids, partially built with blade templates and partially with Vue
Dashboard uses StarAdmin template as a view framework
The app is a multi domain project with a single codebase. One base domain is a main domain. And other domains are subdomains of the base one.
For example:
check-zimmer.de
(main domain)leipzig.check-zimmer.de
(city-related subdomain)- etc
The base domain is specified in .env
file, APP_URL
constant
Subdomains are set up via the dashboard. So there will be no subdomains for a fresh launch. And currently they require configuration from web server app.
So, in order to properly run the project, web server should be configured to work with several domain names pointing to single drectory.
####NB: In order to run, subdomain should be created and be active on the dashboard side and enabled in web server config
composer install
php artisan migrate --seed
php artisan jwt:secret
(optionally)npm install
npm run dev
(dev) ornpm rn prod
(prod)
git pull
composer install
php artisan migrate
npm run watch
docker-compose up --build
docker-compose exec app composer install
- other commands as in preceding sections with
docker-compose exec app
prefix
The project is configured to run at http://localhost:8000 with an automatic subdomain support (no server-side setup required)
JWT_SECRET
- secret key for authenticationGOOGLE_MAPS_API
- API key for Google mapsGOOGLE_MAPS_GEOCODING_API_KEY
- API key for Google geocoderGOOGLE_RECAPTHCA3
- Google reCAPTCHA3 keyGOOGLE_RECAPTHCA3_SECRET
- Google reCAPTCHA3 secret keyMAIL_NOTIFICATION_ADDRESS
- Recipient e-mail for notifications