This is a software for ed Driving. Each tenant/ account will be able to manage all their stuff instructors, students, reports, logo, some colors, and other basic stuff.
The central domain has the ability to see ALL data regardless of the tenant_id column value.
Think of different tenants as different applications, all their data is automatically scoped buy the tenant_id column. Tenants are the subdomains by default you have bar.eddriving.local
tenants are scoped by the domains
table foreign key to the tenants table.
git clone [email protected]:Turtlebytes-LLC/driving-school.git
cp apps/application/env{.example,} -v
vim apps/application/.env
cd apps/application;
yarn install;
Ether
composer install
-- OR --
php composer.phar install
mysql -uUSER -p -e"create database driving_school";
cd apps/application;
php artisan migrate --seed
I created a post install hook in package.json to run composer install automatically
If that does not run composer install
in the apps/application directory
sudo vim /etc/hosts
Append this to the end of the file
127.0.0.1 bar.eddriving.local eddriving.local
In the root of the project run yarn dev
or yarn dev:log
that package.json script will use PM2 to run the laravel server, queue, and vite commands as a daemon
To stop pm2 you can run yarn dev:stop
that runs pm2 delete ecosystem.js
to remove the daemons from the background.
terminal 1
php artisan serve --host="0.0.0.0" --port="8000"
terminal 2
yarn watch
- The vite HMR(hot module reloading) is not working same as browser sync. Something is conflicting.
the yarn watch
command should show a url to open the site
watched url
- Watched URL
- Non watched url
- Prettier Docs
- Google and iCal Links