Musora UI
Musora UI is a tool for prototyping, building, and testing the front end (HTML/JS/Blade) for projects.
Setup
- Ensure your railenvironment repository and docker build are up to date.
- In manager container, run: r setup musora-ui
- Navigate to: /app/musora-ui
- Run: npm install
- Run: npm run BUILD_COMMAND
- Run: r musora-ui composer install
You can view the different npm build commands inside the root package.json file. An example is:
npm run build-drumeo-dev
The /public folder of this repository is hosted on your local machine under URL:
http://devui.musora.com/
Blade
You can automatically render any blade file using the url. /blade tells the request to render a blade template at the
path after /blade relative to the blade folder in the project. For example:
http://devui.musora.com/blade/ui
Will render the blade file at: blade/ui.blade.php
http://devui.musora.com/blade/core/text-input
Will render the blade file at: blade/core/text-input.blade.php
Prototyping
Musora UI is for prototyping in pure HTML and css, which can be reviewed and go through QA before
being put in a regular project such as a laravel project.
All pages inside Musora UI should be statically linked using relative linking in the href tags.
Please create a new branch in this repository when starting a new prototype or starting a new version of an existing
one. Please also separate the prototypes by brands using the folder structure.
Feel free to add new build commands and custom tailwind configs. We can also integrate VueJS, but it has not been setup
yet.
Tools
We highly recommend using the Sizzy browser to develop and preview html pages (license in 1pass):
https://sizzy.co/
You can also use our own internal preview tool here:
http://devui.musora.com/viewer.html
Tailwind CSS is the front end framework that Musora UI uses, it is already installed and configured. You can find
the tailwind docs here:
https://tailwindcss.com/docs/installation
If you are new to tailwind css we highly recommend watching this video series (the other ones in there are great too):
https://tailwindcss.com/course/setting-up-tailwind-and-postcss
This is an amazing list of front end development resources:
https://tailwindcss.com/resources/
A good list of tailwind css specific plugins and tools:
https://github.com/aniftyco/awesome-tailwindcss
We may end up purchasing this UI kit for tailwind:
https://tailwindui.com/
If you think it could be of use let Caleb know!