Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Add Event Booking Functionality for Users #317

Closed
4 tasks done
samar12-rad opened this issue Oct 16, 2024 · 4 comments
Closed
4 tasks done

Feat: Add Event Booking Functionality for Users #317

samar12-rad opened this issue Oct 16, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request gssoc-ext gssoc-extd program hacktoberfest accepted hacktoberfest-accepted repo level3 for 45 points

Comments

@samar12-rad
Copy link
Contributor

Describe the feature

We need to implement a feature that allows users to book events displayed on the cafe website. This feature is essential to provide a seamless booking experience for users. The feature should include both frontend and backend tasks, ensuring smooth integration with the existing MERN stack setup.

Tasks:

  1. Frontend:
    Design & Development:
    Create a responsive booking form that is associated with each event displayed on the website.
    The form should include the following fields: user’s name, email, phone number, and the number of people attending.
    Add client-side validation for the form (e.g., mandatory fields, valid email, etc.).

Authentication & Access Control:
Ensure the booking form is only available to authenticated users.
If the user is not logged in, prompt them to log in or register before booking an event.

User Feedback:
Provide feedback to users upon form submission (e.g., booking confirmation or errors such as missing fields, invalid data, etc.).

  1. Backend:
    API Endpoints:
    Create a new /api/bookings endpoint in the backend to handle event booking requests.
    The endpoint should:
    Validate the incoming booking data (e.g., ensure event exists, mandatory fields are filled, etc.).
    Check if the user is authenticated before proceeding with the booking request.

Database Integration:
Create a bookings model in the MongoDB database to store event booking details. The model should include:
User details (name, email, etc.).
Event details (event ID, event name, date, etc.).
Booking details (number of attendees, booking date, etc.).

Error Handling:
Implement proper error handling for potential issues like double bookings, invalid event IDs, and failed database operations.
Return appropriate error messages and status codes to the frontend.

  1. User Access & Restrictions:
    Only verified users should be able to book events.
    If a user tries to access the booking form without logging in, they should be redirected to the login/signup page.
    Once logged in, the user should be directed back to the event booking form they were trying to access.

  2. Testing & Quality Assurance:
    Thoroughly test the booking process with various user scenarios (e.g., valid booking, missing fields, invalid email, etc.).

Add ScreenShots

image

Record

  • I agree to follow this project's Code of Conduct
  • I have starred the repository
  • I'm a gssoc-24-extd contributor
  • I want to work on this issue
@samar12-rad samar12-rad added the enhancement New feature or request label Oct 16, 2024
Copy link
Contributor

Thank you for creating this issue! 🎉 We'll look into it as soon as possible. In the meantime, please make sure to provide all the necessary details and context. If you have any questions or additional information, feel free to add them here. Your contributions are highly appreciated! 😊

You can also check our CONTRIBUTING.md for guidelines on contributing to this project.
for more information join our discord https://discord.gg/Jh3bWQ7FRN

@RamakrushnaBiswal RamakrushnaBiswal added level3 for 45 points gssoc-ext gssoc-extd program hacktoberfest accepted hacktoberfest-accepted repo labels Oct 16, 2024
@haseebzaki-07
Copy link
Contributor

hey @RamakrushnaBiswal can I take this issue??

@NK-Works
Copy link

NK-Works commented Nov 9, 2024

@RamakrushnaBiswal I can work on this issue
please assign me

@samar12-rad samar12-rad closed this as not planned Won't fix, can't repro, duplicate, stale Nov 21, 2024
Copy link
Contributor

Hello @samar12-rad! Your issue #317 has been closed. Thank you for your contribution!🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gssoc-ext gssoc-extd program hacktoberfest accepted hacktoberfest-accepted repo level3 for 45 points
Projects
None yet
Development

No branches or pull requests

4 participants