Code Monkey home page Code Monkey logo

adnan25042001 / yoga-booking-app Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 4.46 MB

Yoga Booking App is a user-friendly platform for booking yoga classes. Built with modern technologies like React, TypeScript, and Node.js, it offers a seamless browsing and booking experience, and an admin interface for class management. ๐Ÿ˜Š

Home Page: https://master-yoga.vercel.app/

JavaScript 17.59% HTML 0.44% TypeScript 81.83% CSS 0.14%
bcrypt express expressjs jwt jwt-authentication jwt-token mongodb mongoose node nodejs react reactjs tailwind-css tailwindcss typescript

yoga-booking-app's Introduction

Yoga Master

This is a yoga class booking application. It allows users to explore different yoga classes, book a class, and manage their bookings. The application is split into a frontend and a backend. You can visit the webiste here https://master-yoga.vercel.app/

Frontend

The frontend of this is application built with React, TypeScript, and Tailwind CSS. The application is designed for booking yoga classes and has separate interfaces for users and admins.

Admin Access

You can visit the admin login page here https://master-yoga.vercel.app/admin/login

  • username : admin
  • password : admin

Features

  • User Interface: Users can register and log in to the application. They can view all available yoga classes, search for specific classes, and apply filters to narrow down their options. Users can also view detailed information about each class on a separate page and book their preferred yoga class.

  • Admin Interface: Admins can log in to a separate interface where they can view all yoga classes, search for specific classes, and apply filters. Admins also have the ability to add new yoga classes to the platform.

Setup

  • Clone the repository to your local machine.
https://github.com/adnan25042001/yoga-booking-app.git
  • Install the dependencies.
npm install

Running the Application

You can run the application using the following command in the root directory of the project:

npm run dev

Backend

This is a backend application built with Node.js, Express.js, MongoDB, Mongoose, JWT, and bcrypt. The application is designed to manage user authentication and yoga class data for the Yoga Booking App.

Models

The application contains two main models:

  • User: Represents the users of the application.
  • YogaClass: Represents the yoga classes that users can book.

API Endpoints

The application provides several API endpoints:

  • POST /auth/signup: Register a new user.
  • POST /auth/login: Login a user.
  • POST /auth/admin/login: Login an admin.
  • GET /yoga/getall: Get all yoga classes (available for everybody).
  • POST /yoga/add: Add a new yoga class (only admin can add classes).
  • GET /yoga/get/:id: Get details of a specific yoga class (available for everybody).

Setup

  • Clone the repository to your local machine.
https://github.com/adnan25042001/yoga-booking-app.git
  • Install the dependencies.
npm install

Running the Application

You can run the application using the following command in the root directory of the project:

npm run dev

or

nodemon

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

yoga-booking-app's People

Contributors

adnan25042001 avatar

Stargazers

 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.