Coder Social home page Coder Social logo

yoga-registration--form-'s Introduction

Yoga Registration App

Welcome to the Yoga Registration App! This application allows users to register for yoga classes and provides a user-friendly interface for both the server and the React frontend.

Requirements

  • Age Limit: Participants must be aged 18-65.
  • Monthly Fees: Participants pay 500 INR every month.
  • Batch Selection: Four batches per day: 6-7 AM, 7-8 AM, 8-9 AM, and 5-6 PM. Participants can switch batches monthly.

Table of Contents

Project Structure

The project is organized into two main directories:

  • yoga-backend: Contains the server-side code using Node.js and Express.
  • yoga-registration-form: A React app for the frontend.

Getting Started

Prerequisites

Make sure you have the following software installed on your machine:

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/yoga-registration-app.git
    
  2. Navigate to the project directory:

    cd yoga-registration-app
  3. Install dependencies for the backend:

    cd yoga-backend
    npm install
  4. Install dependencies for the frontend:

    cd ../yoga-registration-form
    npm install

Running the App

Backend (Server)

  • Validation: Validates user data received from the frontend.
  • Database Storage: Stores user data in a database.
  • Payment Integration: Simulates payment with a mock CompletePayment() function.
  • Response: Sends a response to the frontend based on the payment outcome.
  1. Navigate to the yoga-backend directory:
     cd ../yoga-backend
  2. Run the server:
    node server.js

The server will be running at http://localhost:5000.

Frontend (React App)

  • Form Submission: Collects user details and sends them to the REST API.
  • Basic Validations: Ensures data integrity through basic validations.

1.Navigate to the yoga-registration-form directory: cd ../yoga-registration-form
2.Run the React app: npm start

The React app will be accessible at http://localhost:3000.

Database Design

ER Diagram

  • ER Diagram: Includes an Entity Relationship (ER) diagram to illustrate the database structure.
  • Table SQLs: Provides SQL statements for creating necessary tables.
    +---------------------+
    |  yoga_admissions   |
    +---------------------+
    | id (PK)             |
    | name (TEXT)         |
    | age (INTEGER)       |
    | selectedBatch (TEXT)|
    | joinDate (TEXT)     |
    +---------------------+

In this diagram:

  • id is the primary key (PK) of the table.
  • name is a text field for storing the user's name.
  • age is an integer field for storing the user's age.
  • selectedBatch is a text field representing the batch the user selected.
  • joinDate is a text field storing the user's joining date.

Hosting

yoga-registration--form-'s People

Contributors

lakshmipriyankaimadabattina avatar

Watchers

 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.