Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

laragym

> 前端框架
Open source

A laravel gym management system

354 stars0 likes2 views
WebsiteGitHub

About

A laravel gym management system

LaraGym

A gym management system built with Laravel, SvelteKit, and a mobile-friendly member PWA.

Features

  • Packages — create and manage membership packages with billing cycles
  • Members — user management with profiles and account numbers
  • Services & billing cycles — annually, weekly, daily, fixed, and more
  • Attendance — track member check-ins per branch
  • Subscriptions — manage member subscriptions with status tracking
  • Branches — multi-branch support
  • Activity logs — system-wide audit trail
  • Admin panel — SvelteKit dashboard for staff (port 5173)
  • Member PWA — installable progressive web app for gym members (port 5174)

Project Structure

laragym/
├── app/                        # Laravel application
├── routes/api.php              # REST API routes
├── resources/apps/
│   ├── admin/                  # Admin panel (SvelteKit)
│   └── member/                 # Member PWA (SvelteKit + vite-plugin-pwa)
└── database/migrations/

Installation

1. Laravel API

bash
git clone [email protected]:johndavedecano/laragym.git project
cd project
composer install
cp .env.example .env        # edit with your DB credentials
php artisan key:generate
php artisan storage:link
php artisan migrate
php artisan db:seed
php artisan serve           # http://localhost:8000

2. Admin Panel

bash
cd resources/apps/admin
cp .env.example .env        # set PUBLIC_API_URL=http://localhost:8000
npm install
npm run dev                 # http://localhost:5173

3. Member PWA

bash
cd resources/apps/member
cp .env.example .env        # VITE_API_BASE_URL can stay empty in dev (proxy handles it)
npm install
npm run dev                 # http://localhost:5174

In development the member app proxies all /api requests to http://localhost:8000 automatically. For production set VITE_API_BASE_URL to your API's public URL.

API

The REST API is served at http://localhost:8000/api.

Group Endpoints
Auth POST /api/auth/login, register, logout, forgot, reset
Member (auth) GET/PUT /api/me, PUT /api/me/password, GET /api/me/subscriptions, GET /api/me/attendance
Admin only cycles, services, branches, packages, subscriptions, users, activities, stats

Tests

bash
# create a `homestead_test` database first, then:
./vendor/bin/phpunit

To use a different test database name, update phpunit.xml.

Screenshots

Contact

Open to work — reach out at [email protected]

License

MIT — free to use, modify, and distribute with attribution.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHPcssgym-managementlaravellaravel-framework

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架