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

Updates and Changes #40

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open

Updates and Changes #40

wants to merge 21 commits into from

Conversation

mattshal1
Copy link
Contributor

  1. Add mongoose schema for items: This commit adds a mongoose schema for defining items, including properties such as title, description, price, etc.
  2. Add mongoose schema for restaurants: This commit implements a mongoose schema for defining restaurants, encompassing attributes like name, location, phoneNumber, etc.
  3. Add mongoose schema for reviews: This commit introduces a mongoose schema for defining reviews, including attributes such as rating, comment, reviewDate, etc.
  4. Add mongoose schema for users: This commit implements a mongoose schema for defining users, including attributes like username, password_hash, email, etc.
  5. Add CRUD routes for items, restaurants, and orders in adminController: This commit adds CRUD routes in the adminController for managing items, restaurants, and orders.
  6. Add routes for customer actions in customerController: This commit introduces routes in the customerController for managing orders and carts for customers.
  7. Add routes for restaurant actions in restaurantController: This commit adds routes in the restaurantController for fetching restaurants and their details.
  8. Add routes for user signing actions in signingController: This commit introduces routes in the signingController for user signing actions, including signing in, signing up, and signing in with Google.
  9. Add Passport configuration for JWT and Google OAuth2.0 strategies: This commit adds Passport configuration for JWT authentication and Google OAuth2.0 authentication.
  10. Add function to create access and refresh tokens: This commit introduces a function to create access and refresh tokens for users.
  11. Add functions for retrieving nearby restaurants based on user location: This commit adds functions for retrieving nearby restaurants based on user location.
  12. Add pagination function for handling paginated results: This commit introduces a pagination function to handle paginated results.

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.

2 participants