Skip to content

App designed to better manage the users admission for the yoga classes which happen every month.

License

Notifications You must be signed in to change notification settings

pratik9333/Yoga-Class-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yoga Class App

About

This App designed to better manage the users admission for the yoga classes which happen every month.

App is desiged based on the following requirements.

  • People within the age limit of 18-65 can enroll for the monthly classes and they will be paying the fees on a month on month basis. I.e. an individual will have to pay the fees every month and he can pay it any time of the month.

  • They can enroll any day but they will have to pay for the entire month. The monthly fee is 500/- Rs INR.

  • There are a total of 4 batches a day namely 6-7AM, 7-8AM, 8-9AM and 5-6PM. The participants can choose any batch in a month and can move to any other batch next month. I.e. participants can shift from one batch to another in different months but in same month they need to be in same batch.

Implementation Details

  • Tech Stack Used

image

  • To get the user details, a simple form is created using react.js. It takes required information and call a post request to the server.

  • In server, a simple middleware has been created to check the validation of data sent by user and then passing it to next controller to store data in database if validation passed or will sent a failed response to frontend included reasons.

  • A mock function named handlePayment() is been called that does payment for user, store the payment details in the database and sents the response according to that in frontend.

  • Batches has been added already according to requirements, but it also had feature to add more batches according to the requirements.

  • User authentication is not done yet, will be adding soon in future updates.

  • ER Diagram Of App

image

User Interface Details

  • Just contain a registration form where users need to fill in the required details. Based on request to backend, it will respond to frontend.

image

Backend Demo Development

Clone and install.

git clone https://github.com/pratik9333/Yoga-Class-App.git
cd Yoga-Class-App/server
npm i

App is containerized, in order to run node app server and postgres database please install docker and docker compose and run the below commands.

cd infrastructure
docker-compose up -d --build
  • The app is now running at http://localhost:80

  • To see the database entries, open your web browser and navigate to http://localhost:8080

  • Fill the below as same entries, and lastly password can be accessed from .env file in your local system.

image

Frontend Demo Development

cd Yoga-Class-App/client
npm i
npm start

Useful Links

Future updates

  • User Authentication.
  • Seperate admin dashboard to add class batches with more information, adding more instructors, payment informations, user informations, etc.
  • Seperate user section to edit/view his profile, view payment informations, view batch members, etc.

if (youEnjoyed) {
    starThisRepository();
}

About

App designed to better manage the users admission for the yoga classes which happen every month.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published