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

Final group capstone: Backend #23

Merged
merged 66 commits into from
Nov 8, 2023
Merged

Final group capstone: Backend #23

merged 66 commits into from
Nov 8, 2023

Conversation

K0ppai
Copy link
Owner

@K0ppai K0ppai commented Nov 2, 2023

Hello Reviewers,
We've worked on the following in this pull request,

  1. The user logs in to the website by typing the email and password.

  2. In the navigation panel, the user can see links to:

    • "Yachts"
    • "Reserve" form
    • "My reservations"
    • "Add Yacht"
    • "Delete Yacht"
  3. On the main page, the user can see a list of motorcycles/doctors/classes/items that you selected as a theme.

  4. When the user selects a specific item, they can see the details page with its full description.

    • In the details page, the user can click the "Reserve" button.
  5. When the user clicks the "Add item" link in the navigation panel they can see a form for adding a new item.

  6. Make the app responsive, creating both mobile and desktop versions.

  7. When the user clicks the "Delete item" link in the navigation panel they can see a list of all items with title and "Delete" button.

    • When the user clicks the "Delete" button, the selected item is marked as removed and does not show on the main list anymore.
  • To reserve an appointment, the user has to select a date and city.
    • Use the design based on the "Book a vespa test-ride" and add all necessary inputs.
    • The user can also access the "Reserve" page from the navigation panel.
  1. When the user clicks the "My reservations" link in the navigation panel they can see a list of their reservations (with information about item name, date and city).
  2. Add full documentation for API.

This the pull request for front end and API documentation.

If you're trying to run the app on local, kindly set up the following,

  • Generate a secret by typing this cmd: bundle exec rake secret in the terminal:
  • Run this cmd: EDITOR='code --wait' rails credentials:edit and once the encrypted .yml is opened
  • Copy this devise_jwt_secret_key: (copy and paste the generated secret here)
  • After copying the secret key in the encrypted .yml file, close it to save. For further information, kindly visit this link.

Thanks for the reviews. 😁

K0ppai and others added 30 commits October 25, 2023 20:48
Yacht Rental Backend: Delete future
Copy link

@Meltrust Meltrust left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @K0ppai ,

Good job so far!
There are some issues that you still need to work on to prepare your project for the final evaluation, but you are almost there!

To highlight:

  • Nice code organization ✔️
  • API is working well✔️
  • Good readme ✔️

You are really close to finishing the Microverse program!! Keep it up! 👍👍👍

You can do it

After implementing the requested changes, please submit another review request. ♻️

Check the comments under the review.

Cheers and Happy coding!👏👏👏

Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the previous reviews unless it is requested otherwise.


Comment on lines +159 to +161
EDITOR='code --wait' rails credentials:edit
```
Copy link

@Meltrust Meltrust Nov 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • In order for this command to work, you need to delete config/credentials.yml.enc first. Kindly, reflect this on your instructions.

Otherwise, it throws this error:

image

README.md Outdated
Comment on lines 135 to 137
rspec ./spec/models
```
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • This command won't work because there are no tests on that folder.

image

README.md Outdated
Comment on lines 149 to 151
rake rswag:specs:swaggerize
```
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • This command won't work because there are no tests on that folder.

image


Rails.application.config.middleware.insert_before 0, Rack::Cors do
allow do
origins 'https://beta-yacht-rental.netlify.app' # later change to the domain of the frontend app
Copy link

@Meltrust Meltrust Nov 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • The local dev won't work because CORS will block it.

This is because the only origin that is being configured is the live demo frontend. Kindly, either reflect this on your instructions in case your users want to run local dev, or add the local origin that is missing. 👍

tip: This is an example about how to add multiple origins to cors:

image

Here is the full thread.

Copy link

@Meltrust Meltrust left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: This review outcome only applies to the backend repo. Kindly, go to the frontend repo to see the review for that project.

Hi @K0ppai ,

Wow, you did it 🎉

Brilliant

Thank you for the changes implemented 💪 🥇 ㊗️

Unless you want to add more features, go ahead to your final presentation ⏩ ⏩ ⏩

You are about to finish the Microverse program. You have come a long way!!!

Good luck in the software industry!! I'll see you there. ✨

Congratulations!!!!!! 🎉

applause

To highlight

  • Readme documentation has been vastly improved✔️

Cheers and Happy coding!👏👏👏


@K0ppai K0ppai merged commit 9271add into main Nov 8, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants