No description
  • PHP 75.3%
  • Blade 21.8%
  • JavaScript 1.3%
  • Dockerfile 1.1%
  • CSS 0.3%
  • Other 0.2%
Find a file
Alex Bissessur 4554859f7b
Merge pull request #49 from xelab04/main
Major: Add Kubernetes manifests for homelab deployment
2025-12-29 18:43:35 +04:00
.github/workflows fix: upgrade to 8.4 2025-12-29 18:38:39 +04:00
app add mastodon to socials 2025-11-29 19:54:59 +04:00
bootstrap trust alex caddy proxy 2025-11-29 19:19:32 +04:00
config wip: updated styling and added better seeders 2025-01-30 01:28:09 +04:00
database fix: add is_admin col to user table 2025-11-16 20:23:12 +04:00
kubernetes inc kubernetes resource reqs 2025-11-29 20:17:01 +04:00
public composer update 2025-11-15 22:44:21 +04:00
resources add mastodon to socials 2025-11-29 19:54:59 +04:00
routes added api for meetups 2025-03-19 21:58:19 +04:00
storage Merge branch 'main' into main 2025-01-31 15:53:53 +04:00
tests FilamentPHP base 2024-08-12 22:52:43 +04:00
.editorconfig FilamentPHP base 2024-08-12 22:52:43 +04:00
.env.example Merge branch 'main' into main 2025-01-31 15:53:53 +04:00
.env.example.production chore: add default timezone 2024-09-12 18:30:28 +04:00
.gitattributes FilamentPHP base 2024-08-12 22:52:43 +04:00
.gitignore fix: use storage link disk for assets 2024-08-26 18:09:51 +04:00
artisan FilamentPHP base 2024-08-12 22:52:43 +04:00
composer.json fix: upgrade to 8.4 2025-12-29 18:38:39 +04:00
composer.lock fix: upgrade to 8.4 2025-12-29 18:38:39 +04:00
docker-entrypoint.sh add dockerfile 2025-11-15 22:35:31 +04:00
Dockerfile update frankenphp port 2025-11-15 23:09:29 +04:00
herd.yml fix: upgrade to 8.4 2025-12-29 18:38:39 +04:00
package-lock.json CFP added 2025-02-19 12:51:25 +04:00
package.json Merge branch 'main' into main 2025-01-31 15:53:53 +04:00
phpunit.xml FilamentPHP base 2024-08-12 22:52:43 +04:00
postcss.config.js Merged web & backoffice 2024-08-14 19:46:20 +04:00
README.md updated readme 2025-01-31 15:24:32 +04:00
tailwind.config.js first version 2025-01-31 12:00:17 +04:00
vite.config.js wip: updated styling and added better seeders 2025-01-30 01:28:09 +04:00

Cloud Native Community Groups Logo

Cloud Native Mauritius

Prerequisites

Clone the repository and ensure the followings are installed:

  • PHP 8.2/8.3
  • PHP Composer
  • NPM
  • SQLite

Install Dependencies

  1. Install all necessary PHP dependencies.

    composer install
    
  2. Install all necessary Node.js dependencies.

    npm install
    

Setting Up Laravel

  1. Copy .env.example to .env in the project root.

    cp .env.example .env
    
  2. Generate a unique application key.

    php artisan key:generate
    

Setting storage

```bash
php artisan storage:link
```

Setting Up SQLite for Development

  1. Run the migration command

    php artisan migrate --seed
    # if already setup, run
    php artisan migrate:fresh --seed # This will clear the database with new data
    
  2. When prompted to create a new SQLite database, type yes.

  3. Seed the database with dummy data.

    php artisan migrate:fresh --seed
    

Run the Frontend Stack for Development

Ensure you are in the root directory and run the following commands:

  1. Start the Laravel development server.

    php artisan serve # or use Herd (https://herd.laravel.com/)
    
  2. Generate ide helper.

    composer run ide
    
  3. Start the frontend development server.

    npm run dev
    
  4. The application should now be accessible on port 8000 (or http://cloudnativemauritius.com.test on herd)

  5. Advanced dev tool available on <host>/__clockwork

Testing on mobile

Set VITE_HMR_HOST to the local IP address of your machine. You'll also have to update the APP_URL

To quickly get the ip, run npm run dev -- --host and you'll see something like Network: http://x.x.x.x

VITE_HMR_HOST=192.168.100.200

Run php artisan serve --port 8000 --host 192.168.100.200 and npm run dev -- --host

In this case, if your phone is connected to the same network, you should be able to access the site on your phone on 192.168.100.200:8000