{"id":21314700,"url":"https://github.com/rohit1kumar/flexmoney","last_synced_at":"2025-06-28T21:42:23.458Z","repository":{"id":64934576,"uuid":"576542248","full_name":"rohit1kumar/flexmoney","owner":"rohit1kumar","description":"Yoga Class Booking App. Build with React, Express and MySQL","archived":false,"fork":false,"pushed_at":"2022-12-18T18:54:15.000Z","size":662,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T10:23:40.751Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://flexmoney-fe-two.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rohit1kumar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-10T06:57:06.000Z","updated_at":"2023-12-17T21:03:48.000Z","dependencies_parsed_at":"2022-12-19T13:08:00.233Z","dependency_job_id":null,"html_url":"https://github.com/rohit1kumar/flexmoney","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohit1kumar%2Fflexmoney","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohit1kumar%2Fflexmoney/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohit1kumar%2Fflexmoney/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohit1kumar%2Fflexmoney/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rohit1kumar","download_url":"https://codeload.github.com/rohit1kumar/flexmoney/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243791136,"owners_count":20348423,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-21T18:15:04.757Z","updated_at":"2025-03-15T21:23:02.796Z","avatar_url":"https://github.com/rohit1kumar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yoga Class Booking App\n\n## ReactJS + ExpressJS + MySQL\n## Introduction\nThis is a simple Yoga Class Booking App. In this project I've used ReactJS for the frontend, ExpressJS for the backend, MySQL for production database\n\n## Features\n(**Note: While creating the project my aim was to focus entirely in the Backend part**)\n\n The API has minimal features like:\n- User Authentication (Login, Signup, Logout)\n- Choosing a Batch (6-7AM, 7-8AM, 8-9AM and 5-6PM)\n- Changing the Batch (next month)\n- A Fake Payment\n---\n## ER Diagram\n![ER Diagram](https://i.imgur.com/JZqlNFs.png)\n\n *Why I chose this ER Diagram?*\n\n I've chosen this ER Diagram because I wanted to keep it simple and easy to understand. I've used the concept of **One to One** relationship between the **User** and **Batch** table as a user can only have one batch at a time. And **One to Many** relationship between the **User** and **Payment** table as a user can have multiple payments in different months.\n\n ---\n\n*I am not a React developer I hope you don't mind :p*\n\n---\n\n## API Documentation\n## How to run this project\n### Clone the repository\n    git clone https://github.com/rohit1kumar/flexmoney.git\n\n### Change the directory\n    cd flexmoney\n\n### change the directory to client\n    cd client\n\n### Install the dependencies and start the client\n    npm install \u0026\u0026 npm start\n### Change the directory to server\n    cd server\n### Add environment variables by renaming the .env.example file to .env\n\n    DATABASE_NAME=\u003cyour database name\u003e\n    DATABASE_USER=\u003cyou database user\u003e\n    DATABASE_PASSWORD=\u003cyour database password\u003e\n    DATABASE_HOST=\"localhost\"\n    DATABASE_PORT=\"3306\"\n    JWT_SECRET=\"jwt_secret\"\n### Base URL\n    http://localhost:3000/api/v1\n## API Endpoints\n|  REQUEST  |  ENDPOINT         |  DESCRIPTION\n|    ---    |    ---            |     ---\n| POST      | /user/register    | Register user with name, email and password and date of birth\n| POST      | /user/login       | Login user with email and password\n| GET       | /user/logout      | Logout user\n| GET       | /user/me          | Info about the loginned user\n| POST      | /batch/join       | Add user to a batch with timing and pay the amount\n| PATCH     | /batch/Change     | Change the Batch and Pay the amount\n| GET       | /payment/all      | Get all the payments with pagination (its not protected)\n\n## Want to test the API?\n\nImport the **yoga.postman_collection.json** file in your postman and test the API endpoints with the help of video below.\n\n[Watch the video](https://www.youtube.com/watch?v=46YU0-6wXVs)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohit1kumar%2Fflexmoney","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frohit1kumar%2Fflexmoney","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohit1kumar%2Fflexmoney/lists"}