Giter VIP home page Giter VIP logo

laragym's Introduction

LaraGym - A Laravel gym management system

Finally a gym management system build with laravel and reactjs. Comes with powerful features that will allow you to scale and easily manage your gym or fitness centers.

My Image

Features

  1. packages - create custom packages.
  2. members - user management system.
  3. services and billing cycles - annually, weekly, daily, fixed etc.
  4. attendance - tracks who is currently on the gym.
  5. activities or system logs
  6. subscription management
  7. branches

Open to Work

If you have specific requires and would like to work with, please contact me via email at [email protected]

Screenshots

My Image My Image

Installation

  1. API Setup
$ git clone [email protected]:johndavedecano/laragym.git project
$ cd project
$ composer install
$ cp .env.example .env # THEN EDIT YOUR ENV FILE ACCORDING TO YOUR OWN SETTINGS.
$ php artisan key:generate
$ php artisan storage:link
$ php artisan migrate
$ php artisan db:seed
$ php artisan serve
  1. SveletKit Frontend Setup
$ cd resources/apps/admin
$ cp .env.example .env # edit this file accordingly
$ npm install
$ npm run dev

Tests

If you want to contribute to this project, feel free to do it and open a PR. However, make sure you have tests for what you implement.

In order to run tests:

  • create a homestead_test database on your machine;
  • run ./vendor/bin/phpunit;

If you want to specify a different name for the test database, don't forget to change the value in the phpunix.xml file.

Routes

My Image

Feedback

I currently made this project for personal purposes. I decided to share it here to help anyone with the same needs. If you have any feedback to improve it, feel free to make a suggestion, or open a PR!

License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

laragym's People

Contributors

johndavedecano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laragym's Issues

Laravel 10 - Activities API

Method URI Name Action
GET /api/activities activities.index App\Api\V1\Controllers\ActivityController@index
POST /api/activities activities.store App\Api\V1\Controllers\ActivityController@store
GET /api/activities/{activity} activities.show App\Api\V1\Controllers\ActivityController@show
PUT /api/activities/{activity} activities.update App\Api\V1\Controllers\ActivityController@update
DELETE /api/activities/{activity} activities.destroy App\Api\V1\Controllers\ActivityController@destroy

how to run it locally?

Hi i have follow the instructions, i might miss something.
Could you please help me how to run it on locally on my laptop.
I have receiving network error.

Thanks.

Laravel 10 Upgrade Tasks - Setups

Issues and Problems

Please let me know what i am missing on the application and problems so i can sort it out as soon as possible.

Failing to build Frontend

Hello, I was struggling to build frontend part, tried with many Windows subsystems node versions but no luck.

php errors

Warning: require(\GymManagementSystemPHPLaravel\bootstrap/../vendor/autoload.php) [function.require]: failed to open stream: No such file or directory in \GymManagementSystemPHPLaravel\bootstrap\autoload.php on line 17

Fatal error: require() [function.require]: Failed opening required \GymManagementSystemPHPLaravel\bootstrap/../vendor/autoload.php' (include_path='.;C:\php5\pear') in \GymManagementSystemPHPLaravel\bootstrap\autoload.php on line 17

Not able to migrate

Compose install is running successfully
But when trying to run this command: "PHP artisan migrate" I am getting this error: In PackageManifest.php line 122: Undefined index: name
Please Help
LaraGym

Laravel 10 - Invoices API

Method URI Name Action
GET /api/invoices invoices.index App\Api\V1\Controllers\InvoiceController@index
GET /api/invoices/{invoice} invoices.show App\Api\V1\Controllers\InvoiceController@show

Laravel 10 - Billing Cycles

Method URI Name Action
GET /api/cycles cycles.index App\Api\V1\Controllers\CycleController@index
POST /api/cycles cycles.store App\Api\V1\Controllers\CycleController@store
GET /api/cycles/{cycle} cycles.show App\Api\V1\Controllers\CycleController@show
PUT /api/cycles/{cycle} cycles.update App\Api\V1\Controllers\CycleController@update
DELETE /api/cycles/{cycle} cycles.destroy App\Api\V1\Controllers\CycleController@destroy

Change the dashboard layout

Seems like the dashboard layout is usng a generic bootstrap theme.

Can we change this to something else? So that the UI/UX wilk be better.

Also, the dashboard doesn't tell something essential butbjust attendance and updates.

can we add other statistics?

Stuck on login page

After entering email address and password, I got a successful login message even with a random email and password and was redirected back to the login page.

Laravel 10 - Subscriptions API

Please setup https://laravel.com/docs/10.x/billing#introduction

Method URI Name Action
GET /api/subscriptions subscriptions.index App\Api\V1\Controllers\SubscriptionController@index
POST /api/subscriptions subscriptions.store App\Api\V1\Controllers\SubscriptionController@store
GET /api/subscriptions/{subscription} subscriptions.show App\Api\V1\Controllers\SubscriptionController@show
PUT /api/subscriptions/{subscription} subscriptions.update App\Api\V1\Controllers\SubscriptionController@update
DELETE /api/subscriptions/{subscription} subscriptions.destroy App\Api\V1\Controllers\SubscriptionController@destroy

error php artisan migrate

Hi,
I'm trying to follow your steps as indicated in the readme but I'm blocked at the line php artisan migrate
I have the following errors, or I don't find anywhere a dump.sql also indicated in the dockerfile-example.yml.
In Connection.php line 664:

SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_schema.tables where table_schema = homeste
ad and table_name = migrations)

In PDOConnection.php line 50:

SQLSTATE[HY000] [2002] No such file or directory

In PDOConnection.php line 46:

SQLSTATE[HY000] [2002] No such file or directory

Thanks,

Laravel 10 - Services API

Method URI Name Action
GET /api/services services.index App\Api\V1\Controllers\ServiceController@index
POST /api/services services.store App\Api\V1\Controllers\ServiceController@store
GET /api/services/{service} services.show App\Api\V1\Controllers\ServiceController@show
PUT /api/services/{service} services.update App\Api\V1\Controllers\ServiceController@update
DELETE /api/services/{service} services.destroy App\Api\V1\Controllers\ServiceController@destroy

Laravel 10 - Users API

Method URI Name Action
GET /api/users users.index App\Api\V1\Controllers\UserController@index
POST /api/users users.store App\Api\V1\Controllers\UserController@store
GET /api/users/{user} users.show App\Api\V1\Controllers\UserController@show
PUT /api/users/{user} users.update App\Api\V1\Controllers\UserController@update
DELETE /api/users/{user} users.destroy App\Api\V1\Controllers\UserController@destroy

Laravel 10 - Packages API

Method URI Name Action
GET /api/packages packages.index App\Api\V1\Controllers\PackageController@index
POST /api/packages packages.store App\Api\V1\Controllers\PackageController@store
GET /api/packages/{package} packages.show App\Api\V1\Controllers\PackageController@show
PUT /api/packages/{package} packages.update App\Api\V1\Controllers\PackageController@update
DELETE /api/packages/{package} packages.destroy App\Api\V1\Controllers\PackageController@destroy

COMPOSER INSTALL PSR-4 autoloading standard

During Composer Install

Class Tests\Feature\User\StatsControllerTest located in laragym-3.1.1/tests\Feature\StatsControllerTest.php does not comply with psr-4 autoloading standard. Skipping.

Please check on this.

Renaming statscontrollertest.phpnamespace to tests\Feature\User seemed to work but frontend still ain't connecting to the backend

'html-webpack-plugin-before-html-processing'. Hook was not found

Getting the below error when using yarn start. Please help!

Plugin could not be registered at 'html-webpack-plugin-before-html-processing'. Hook was not found.
BREAKING CHANGE: There need to exist a hook at 'this.hooks'. To create a compatibility layer for this hook, hook into 'this._pluginCompat'. error Command failed with exit code 1.

error

hi i have an error like this
Failed to compile
./src/pages/services/create.js
Module not found: Can't resolve 'components/Breadcrumbs' in 'C:\xampp\htdocs\laragym\resources\apps\frontend\src\pages\services'

how to fix it ?

Failed opening required '/var/www/laravel/bootstrap/../vendor/autoload.php'

Hi, just managed to get this running in docker using the docker-compose.testing.yml template, but am getting the following error on http://localhost:8080

Warning: require(/var/www/laravel/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/laravel/bootstrap/autoload.php on line 17

Fatal error: require(): Failed opening required '/var/www/laravel/bootstrap/../vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/laravel/bootstrap/autoload.php on line 17

For clarification, I changed nginx ports: 8000:80 to ports: 8080:80 in docker-compose.testing.yml as well as APP_URL=http://localhost:8000 to APP_URL=http://localhost:8080 in the .env file. Besides that, have not changed anything else.

Any ideas? Thanks! This repo is a beast, thanks for sharing it.

gym

Error status 500

Hello I getting this error when try to click anywhere: Request failed with status code 500.

Laravel 10 - Files API

Method URI Name Action
GET /api/files files.index App\Api\V1\Controllers\FileController@index
POST /api/files files.store App\Api\V1\Controllers\FileController@store
GET /api/files/{file} files.show App\Api\V1\Controllers\FileController@show
PUT /api/files/{file} files.update App\Api\V1\Controllers\FileController@update
DELETE /api/files/{file} files.destroy App\Api\V1\Controllers\FileController@destroy

Not getting production build

image

When I am giving the command for vite build the error comes in regards to wayland
image

And when trying to build with npm run build

the error is

image

Laravel 10 - Authentication API

  • Login - POST - /api/auth/login
  • Register - POST - /api/auth/register
  • Forgot Password - POST - /api/auth/forgot
  • Reset Password - POST - /api/auth/reset
  • Activate Account - POST - /api/auth/activate
  • Reset Activation - PUT - /api/auth/activate
  • Refresh Token - POST - /api/auth/refresh
  • Get Current User Profile - GET- /api/auth/user
  • Update Current User Profile - PUT - /api/auth/user
  • Update Current User Password - PUT - /api/auth/password
  • Update Current User Avatar- POST - /api/auth/avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.