Giter Club home page Giter Club logo

driving-school's Introduction

Ed Driving

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.

Project Stuff 1

Useful Links

Once the servers are running at the end of this file, some notes

Central Domain

The central domain has the ability to see ALL data regardless of the tenant_id column value.

Tenants

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.

Start Development

Clone repo

git clone [email protected]:Turtlebytes-LLC/driving-school.git

Create .env file

cp apps/application/env{.example,} -v

Set database credentials and other settings in the .env file

vim apps/application/.env

Install dependencies

cd apps/application;
yarn install;

Ether

composer install

-- OR --

php composer.phar install

Setup database

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

Add the /etc/hosts file entries

sudo vim /etc/hosts

Append this to the end of the file

127.0.0.1 bar.eddriving.local eddriving.local

Start app option 1

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.

Start app option 2

terminal 1

php artisan serve --host="0.0.0.0" --port="8000"

terminal 2

yarn watch

BUGS

  • The vite HMR(hot module reloading) is not working same as browser sync. Something is conflicting.

Login

the yarn watch command should show a url to open the site

watched url

URLS

driving-school's People

Contributors

devmad119 avatar

Watchers

 avatar

Forkers

atefbb

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.