Skip to content

Commit 2d2f17d

Browse files
committed
Revise README.md to enhance clarity and detail about the Modular Demo App, including installation instructions, features, and links to demo applications.
1 parent fa14573 commit 2d2f17d

File tree

1 file changed

+112
-43
lines changed

1 file changed

+112
-43
lines changed

README.md

Lines changed: 112 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,135 @@
1-
<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400" alt="Laravel Logo"></a></p>
1+
# Modular Demo App
22

3-
<p align="center">
4-
<a href="https://github.com/laravel/framework/actions"><img src="https://github.com/laravel/framework/workflows/tests/badge.svg" alt="Build Status"></a>
5-
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/dt/laravel/framework" alt="Total Downloads"></a>
6-
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/v/laravel/framework" alt="Latest Stable Version"></a>
7-
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a>
3+
A demo application to illustrate some concepts of a Modular App.
4+
5+
<p align="center" style="margin: 24px;">
6+
<a href="https://docs.ismodular.com" target="_blank">
7+
<img src="art/modular-demo-screen-black.jpg" alt="Modular Demo App" style="width: 100%; max-width: 800px;"></a>
88
</p>
99

10-
## About Laravel
10+
<center>
11+
12+
[![Vue v3.x](https://img.shields.io/badge/Vue.js-v3.x-2f4053?style=for-the-badge&logo=vue.js&logoColor=39af78)](https://vuejs.org/)
13+
[![Inertia.js v2.x](https://img.shields.io/badge/Inertia.js-v2.x-6765ea?style=for-the-badge&logo=inertia&logoColor=ffffff)](https://inertiajs.com/)
14+
[![Laravel v12.x](https://img.shields.io/badge/Laravel-v12.x-FF2D20?style=for-the-badge&logo=laravel)](https://laravel.com)
15+
[![Tailwind CSS v4.x](https://img.shields.io/badge/Tailwind%20CSS-v4.x-31b5f7?style=for-the-badge&logo=tailwind-css&logoColor=ffffff)](https://tailwindcss.com/)
16+
[![Tests passing](https://img.shields.io/badge/Tests-passing-green?style=for-the-badge&logo=github)](https://github.com/daniel-cintra/modular/actions)
17+
18+
</center>
19+
20+
## The Demo App will provide you with examples of:
21+
22+
- The ACL (Access Control List) System.
23+
- Some of the Custom Vue 3 Components, provided by Modular (Templates, Sidebar, Data Table, Form Components, Integrated Text Editor, Flash Messages, etc).
24+
- How Laravel, Vue and Inertia.js communicate with each other.
25+
- A possible way to organize the file structure of a Modular Project.
26+
- Smooth transitions between pages.
27+
- The GitHub repository for this demo app includes examples of workflows (GitHub Actions) to standardize the styles of the PHP files using Laravel Pint, and the Vue and JavaScript files using Prettier. There is also a workflow to handle tests. Feel free to check it out!
28+
29+
## Visit the Demo App
30+
31+
You can visit the Modular Panel Demo App (CMS) at [https://demo.ismodular.com](https://demo.ismodular.com).
32+
33+
And the Blog Demo PreviewApp at [https://demo.ismodular.com/blog](https://demo.ismodular.com/blog).
34+
35+
## Installation
36+
37+
Clone the repo locally:
38+
39+
```sh
40+
git clone https://github.com/daniel-cintra/modular-demo.git modular-demo && cd modular-demo
41+
```
42+
43+
Install PHP dependencies:
44+
45+
```sh
46+
composer install
47+
```
48+
49+
Setup configuration:
50+
51+
```sh
52+
cp .env.example .env
53+
```
54+
55+
Generate application key:
56+
57+
```sh
58+
php artisan key:generate
59+
```
60+
61+
Configure the database settings in your .env file according to your choice of database (MySQL, PostgreSQL, SQLite, etc.). If you want to use SQLite, create the database file:
62+
63+
```sh
64+
touch database/database.sqlite
65+
```
66+
67+
Run database migrations and seeder:
68+
69+
```sh
70+
php artisan migrate:fresh --seed
71+
```
72+
73+
Create a symlink to the storage:
74+
75+
```sh
76+
php artisan storage:link
77+
```
78+
79+
Copy the blog example images from `resources/images/blog` to `storage/app/public/blog`:
80+
81+
```
82+
cp -r resources/images/blog storage/app/public/blog
83+
```
84+
85+
Install NPM dependencies:
1186

12-
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
87+
```sh
88+
npm install
89+
```
1390

14-
- [Simple, fast routing engine](https://laravel.com/docs/routing).
15-
- [Powerful dependency injection container](https://laravel.com/docs/container).
16-
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
17-
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
18-
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
19-
- [Robust background job processing](https://laravel.com/docs/queues).
20-
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).
91+
Build the assets:
2192

22-
Laravel is accessible, powerful, and provides tools required for large, robust applications.
93+
```sh
94+
npm run build
95+
```
2396

24-
## Learning Laravel
97+
Run the dev server (the output will give the address):
2598

26-
Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.
99+
```sh
100+
php artisan serve
101+
```
27102

28-
You may also try the [Laravel Bootcamp](https://bootcamp.laravel.com), where you will be guided through building a modern Laravel application from scratch.
103+
You're ready to go! Simply visit the URL in your browser; the login form will appear with the fields automatically filled in.
29104

30-
If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
105+
## Hot Reloading
31106

32-
## Laravel Sponsors
107+
If you want to use hot reloading, to see the changes in the browser without having to refresh the page, run the following command (instead of `npm run build`):
33108

34-
We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the [Laravel Partners program](https://partners.laravel.com).
109+
```sh
110+
npm run dev
111+
```
35112

36-
### Premium Partners
113+
And run the following command in a separate terminal window:
37114

38-
- **[Vehikl](https://vehikl.com/)**
39-
- **[Tighten Co.](https://tighten.co)**
40-
- **[WebReinvent](https://webreinvent.com/)**
41-
- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**
42-
- **[64 Robots](https://64robots.com)**
43-
- **[Curotec](https://www.curotec.com/services/technologies/laravel/)**
44-
- **[Cyber-Duck](https://cyber-duck.co.uk)**
45-
- **[DevSquad](https://devsquad.com/hire-laravel-developers)**
46-
- **[Jump24](https://jump24.co.uk)**
47-
- **[Redberry](https://redberry.international/laravel/)**
48-
- **[Active Logic](https://activelogic.com)**
49-
- **[byte5](https://byte5.de)**
50-
- **[OP.GG](https://op.gg)**
115+
```sh
116+
php artisan serve
117+
```
51118

52-
## Contributing
119+
Access the application (in your browser) at the address given by the `php artisan serve` command.
53120

54-
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
121+
## Tests
55122

56-
## Code of Conduct
123+
The tests provided by this Demo Application can be found in the `{moduleName}/Tests` directory. After installing the application, you can run the tests executing the following command from the project root directory in the terminal:
57124

58-
In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).
125+
```sh
126+
php artisan test
127+
```
59128

60-
## Security Vulnerabilities
129+
## Modular Documentation
61130

62-
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.
131+
You can find the full Modular documentation at [https://docs.ismodular.com](https://docs.ismodular.com).
63132

64133
## License
65134

66-
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
135+
The Modular Project is open-source software licensed under the [MIT license](LICENSE.md).

0 commit comments

Comments
 (0)