Git Product home page Git Product 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

For professional support please email me at [email protected]

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 migrate
$ php artisan db:seed
$ php artisan serve
  1. Frontend Setup
$ cd project/resources/apps/frontend
$ cp .env.example .env # edit this file accordingly
$ yarn
$ yarn start
$ yarn build # for production

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

Method URI Name Action Protected Version(s)
POST /api/auth/signup App\Api\V1\Controllers\SignUpController@signUp No v1
POST /api/auth/login App\Api\V1\Controllers\LoginController@login No v1
POST /api/auth/recovery App\Api\V1\Controllers\ForgotPasswordController@sendResetEmail No v1
POST /api/auth/reset App\Api\V1\Controllers\ResetPasswordController@resetPassword No v1
POST /api/auth/logout App\Api\V1\Controllers\LogoutController@logout No v1
POST /api/auth/refresh App\Api\V1\Controllers\RefreshController@refresh No v1
GET /api/me App\Api\V1\Controllers\UserController@me No v1
GET /api/cycles cycles.index App\Api\V1\Controllers\CycleController@index No v1
POST /api/cycles cycles.store App\Api\V1\Controllers\CycleController@store No v1
GET /api/cycles/{cycle} cycles.show App\Api\V1\Controllers\CycleController@show No v1
PUT /api/cycles/{cycle} cycles.update App\Api\V1\Controllers\CycleController@update No v1
DELETE /api/cycles/{cycle} cycles.destroy App\Api\V1\Controllers\CycleController@destroy No v1
GET /api/services services.index App\Api\V1\Controllers\ServiceController@index No v1
POST /api/services services.store App\Api\V1\Controllers\ServiceController@store No v1
GET /api/services/{service} services.show App\Api\V1\Controllers\ServiceController@show No v1
PUT /api/services/{service} services.update App\Api\V1\Controllers\ServiceController@update No v1
DELETE /api/services/{service} services.destroy App\Api\V1\Controllers\ServiceController@destroy No v1
GET /api/packages packages.index App\Api\V1\Controllers\PackageController@index No v1
POST /api/packages packages.store App\Api\V1\Controllers\PackageController@store No v1
GET /api/packages/{package} packages.show App\Api\V1\Controllers\PackageController@show No v1
PUT /api/packages/{package} packages.update App\Api\V1\Controllers\PackageController@update No v1
DELETE /api/packages/{package} packages.destroy App\Api\V1\Controllers\PackageController@destroy No v1
GET /api/users users.index App\Api\V1\Controllers\UserController@index No v1
POST /api/users users.store App\Api\V1\Controllers\UserController@store No v1
GET /api/users/{user} users.show App\Api\V1\Controllers\UserController@show No v1
PUT /api/users/{user} users.update App\Api\V1\Controllers\UserController@update No v1
DELETE /api/users/{user} users.destroy App\Api\V1\Controllers\UserController@destroy No v1
GET /api/activities activities.index App\Api\V1\Controllers\ActivityController@index No v1
POST /api/activities activities.store App\Api\V1\Controllers\ActivityController@store No v1
GET /api/activities/{activity} activities.show App\Api\V1\Controllers\ActivityController@show No v1
PUT /api/activities/{activity} activities.update App\Api\V1\Controllers\ActivityController@update No v1
DELETE /api/activities/{activity} activities.destroy App\Api\V1\Controllers\ActivityController@destroy No v1
GET /api/subscriptions subscriptions.index App\Api\V1\Controllers\SubscriptionController@index No v1
POST /api/subscriptions subscriptions.store App\Api\V1\Controllers\SubscriptionController@store No v1
GET /api/subscriptions/{subscription} subscriptions.show App\Api\V1\Controllers\SubscriptionController@show No v1
PUT /api/subscriptions/{subscription} subscriptions.update App\Api\V1\Controllers\SubscriptionController@update No v1
DELETE /api/subscriptions/{subscription} subscriptions.destroy App\Api\V1\Controllers\SubscriptionController@destroy No v1
POST /api/upload App\Api\V1\Controllers\ImageController@store No v1
GET /api/refresh Closure No v1

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 dependabot[bot] avatar ibrahemhamdy1 avatar

Stargazers

Ginsky 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.