-
Notifications
You must be signed in to change notification settings - Fork 127
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
Added station services #228
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊 |
@haseebzaki-07 good but add booking.jsx in pages folder only don't add it in component |
@dhairyagothi sure I will add the bookings back in pages and please explain me what you want to see in the backend as these are all the changes I have made. |
@dhairyagothi You wont be able to see the backend functioning without a database. |
@haseebzaki-07 i know that but there is problem in deployment in backend on vercel i kust want to check how changes is working with backend |
great work @haseebzaki-07 kudos to you thankyou so much |
🎉 Your pull request has been successfully merged! 🎉 Thank you for your valuable contribution to Station Guide. Your efforts are greatly appreciated. Feel free to reach out if you have any more contributions or if there's anything else we can assist you with. Keep up the fantastic work! 🚀 |
@dhairyagothi it's my pleasure |
fixes #203
Description of Changes
This PR encourages the booking functionality of services at a specific station by fetching all the available services with count.
It has suggestions for stations in the database from which one can select the desired station to proceed with the booking.
It has backend routes and controllers for fetching all stations , creating a station, fetching stations bookings, fetching coolies , wheelchairs and cloakroom for a station by Id.
Also i migrated the bookings component from pages/booking.jsx to components/BookingForm.jsx and updated the routes for improving modularity of the code.
Type of Pull Request
2024-10-13.01-29-41.mp4
Screenshots / Demo (if applicable)
(https://github.com/user-attachments/assets/896372ca-424d-454e-9b59-2b2408cfa31c)
get all stations:
![Screenshot 2024-10-13 013019](https://private-user-images.githubusercontent.com/147314463/375985192-d751725e-abbc-4bd6-9dee-89fa62ae9e6d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NTI4NDgsIm5iZiI6MTczODk1MjU0OCwicGF0aCI6Ii8xNDczMTQ0NjMvMzc1OTg1MTkyLWQ3NTE3MjVlLWFiYmMtNGJkNi05ZGVlLTg5ZmE2MmFlOWU2ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwN1QxODIyMjhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04ZGYyODgzOTA4Y2UzNzZkYzRmOWVlMmMwZTAxMmVlMjIyNjljZDBkNTg1Y2E3NGQ4YjYxZjJkOTBmNWY0Y2MwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.qpHEdKLQ6IUKX6OvfRHefT4aku7XWs8vmwEuOkRGAwc)
get all stations booking by id:
![Screenshot 2024-10-13 013058](https://private-user-images.githubusercontent.com/147314463/375985282-c9afedd6-0e2b-4b8b-be54-3b86b883f806.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NTI4NDgsIm5iZiI6MTczODk1MjU0OCwicGF0aCI6Ii8xNDczMTQ0NjMvMzc1OTg1MjgyLWM5YWZlZGQ2LTBlMmItNGI4Yi1iZTU0LTNiODZiODgzZjgwNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwN1QxODIyMjhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03Y2Q0MzVlMWU3MWZhYWFkYjMwMGRlMmRmNDAzMzA3MzRjMWUyNjdiOGRkNGM1YTBkYzJhYmJiM2VkYzE2MTEwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.lE2QctxFnzasWPbgV0LkpzDjhwDM-8u-OG3SmlFp1Dw)
get station coolie booking:
![Screenshot 2024-10-13 013238](https://private-user-images.githubusercontent.com/147314463/375985308-95ba01d2-489e-4aae-9668-8aa63ca62176.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NTI4NDgsIm5iZiI6MTczODk1MjU0OCwicGF0aCI6Ii8xNDczMTQ0NjMvMzc1OTg1MzA4LTk1YmEwMWQyLTQ4OWUtNGFhZS05NjY4LThhYTYzY2E2MjE3Ni5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwN1QxODIyMjhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01NzViZmIzZDEwNjAyNTI2ZDk3ZWIwNzBlYjYwNzhlMjU3NzZiNGRlZDVjYWJlYmJjNTRmYWJmYjMxNzkwZDlkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.daCKIZA7bnyNAEkno-MqtRpkjGgdXFLBVgXYWyuZozY)
get station wheelchair booking:
![Screenshot 2024-10-13 013303](https://private-user-images.githubusercontent.com/147314463/375985322-2496d600-cb9d-4113-98ba-86756aa5280d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NTI4NDgsIm5iZiI6MTczODk1MjU0OCwicGF0aCI6Ii8xNDczMTQ0NjMvMzc1OTg1MzIyLTI0OTZkNjAwLWNiOWQtNDExMy05OGJhLTg2NzU2YWE1MjgwZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwN1QxODIyMjhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04YzRiNTNmYjBmNWQzNWM3YTBlNTQ2Nzg0ZjQ0MDkwOTgwNTczOTM0OWRjMmZhNzJhNWM4MGYyODgzYmY4ZjBkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.7R5Bu3CzWDaQaHxoDF_ZE3tobTXPRgg9o6w539GIbnY)
Checklist for Contributor
use'X' in [X] to check it .
Additional Information
[Include any additional context or relevant information that may help in reviewing this PR.]
Contribution Guidelines Reminder
Thank you for contributing to our project! Please ensure you follow the guidelines below:
Contribution Levels
Task Categories:
Acknowledging Effort:
Review Process
PRs will be reviewed by the maintainers, and feedback will be provided. Contributors should address feedback promptly and resubmit the PR if necessary.
Contributors are encouraged to participate in the review process of other PRs for community growth.
We appreciate your time and effort in improving this project and look forward to your valuable contributions!