Installation
#
PrerequisitesIf you haveĀ TailwindĀ andĀ BouncerĀ pre-installed, you can move on to theĀ InstallationĀ section.
#
1) Tailwind InstallationInstall Tailwind as shown below:
Next, generate your tailwind.config.js file:
In your tailwind.config.js file, configure the purge option with the paths to all of your Blade templates and JavaScript components so Tailwind can tree-shake unused styles in production builds:
In your webpack.mix.js, add tailwindcss as a PostCSS plugin:
Open the ./resources/css/app.css
file and add the following code, replacing the original file contents:
Next, import your stylesheet in your main Blade layout (commonly resources/views/layouts/app.blade.php
or similar) and add the responsive viewport meta tag if it's not already present:
#
2) Bouncer InstallationInstall Bouncer with composer:
Add Bouncer's trait to your user model:
Publish Bouncer's migrations to your app's migrations directory by running the following command:
#
InstallationInstall the Sharedo package with composer as shown below:
After installation, move the package's config file to your project's config folder:
Moving forward, scaffold the view components present in the sharedo package as follows:
AĀ SharedoĀ folder containing Vue.js components will be created in your resources directory. You can now easily customise your Sharedo's Vuejs componentsĀ š
Now, run the migrations. After executing this command, Bouncer migrations and theĀ new_users_sharedoĀ table will be migrated:
To compile and minify the CSS and JavaScript files generated by sharedo, add this to your webpack.mix.js file:
Note: If your css is not compiled in yourĀ app.css file,Ā you can change it inĀ the sharedo.blade.phpĀ file.
Install the dependencies:
Finally, build your assets as shown below: