feat: initial MVP implementation of BookMyVenue#93
Open
Adeelp1 wants to merge 58 commits into
Open
Conversation
- user login and registration - JWT access and refresh tokens - bcrypt password hashing - PostgreSQL integration via Docker Compose - sqlc code generation - migration management - Makefile automation - project gitignore configuration
- Add admin, owner, and user homepage HTML pages - Create internal/web package for frontend serving logic - Move HTML serving logic out of auth handler - Redirect users to role-specific homepages after login - Improve separation of concerns between auth and web layers
- add location column to venues table - add venue search and update queries - regenerate sqlc code
…support - implement venue creation feature - save uploaded venue images to uploads folder - add required dependencies - add add_venue.html form for venue submission - add pkg/utils/uuid.go for string to pgtype.UUID conversion - serve frontend for add venue API - update venue owner home page with links to add venue, view approved venues, and view unapproved venues
…eation - implement single and bulk slot creation for venue owners - store availability slots in the availability database - add 'Set Venue' link on approved venues page for slot management - add utility function to convert string to pgtype.Timestamp
* update RoleGuard to accept multiple roles * add test cases for role authorization scenarios
…payment * reserve slots in Redis and PostgreSQL during booking * add mock payment page using HTML * persist booking details in the bookings table
* store access and refresh tokens in HTTP cookies * update JWT middleware to read tokens from cookies * rewrite JWT middleware tests for cookie-based authentication * remove Authorization header usage from frontend
…onfirmed status * add query to retrieve slot ID by booking ID * update GetBookingsByUserID to filter confirmed bookings * generate sqlc code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request introduces the initial MVP implementation of BookMyVenue, delivering the core functionality required for a complete venue booking platform.
What's Included
This PR represents the first complete, end-to-end MVP of BookMyVenue, covering the primary workflows for users, venue owners, and administrators.
Phase Category
Tech Stack (For Phase 1 MVP Submissions)
(Example: Frontend: React, Backend: Node.js, Database: MongoDB)
Type of Change
Checklist:
AI Disclosure
Screenshots / Screen Recording (if applicable)