Skip to content

Nicholene/Diet_Detective

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

Diet Detective

Welcome to the Diet Detective, a haven for allergy-friendly dining! Users can review restaurants based on egg, peanut, or dairy allergies. Once an Admin approves these reviews, they contribute to the restaurant’s overall score.

Explore the Repo (click here)

Review the In-Depth Article (click here)

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

[Product Name Screen Shot

This API is designed for easy interaction and uses cURL and JSON format. The project is neatly structured with four entities, each having its own controller and service for efficient code management. We utilize an in-memory SQL database, H2, with JPA for CRUD operations. Please note that the data resets when the application restarts. This project is not just a practical application of Java Spring API skills, but also a valuable tool for those with dietary restrictions. Looking ahead, I plan to enhance the user experience by adding a front end for a more intuitive user interface. Stay tuned for more updates!

Getting Started

This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.

Prerequisites

Ensure you have the following installed on your local machine: Java JDK 20 or later, Maven, and an IDE of your choice.

Installation

  1. Clone the repo

  2. Navigate to the project directory

  3. Build the project

  4. Run the application

Usage

Here is a simplified guide:

  1. Add Users: Send a POST request to /users with the user’s details.
  2. Get User Info: Send a GET request to /users/{username}.
  3. Update User Info: Send a PUT request to /users/{username} with the new info.
  4. Add Restaurants: Send a POST request to /api with the restaurant’s details.
  5. Get Restaurant Info: Send a GET request to /api/{restaurant_id}.
  6. Add Reviews: Send a POST request to /admin with the review details.
  7. Approve Reviews: Send a PUT request to /admin/reviews/{review_id}.

For specific curl commands and more examples, please refer to the The In-Depth-Article (click here)

Remember, the data resets when the app restarts as it uses an in-memory H2 database. Code away! 😊

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

Nicholene Davison - Linkedin - nikkicholene2@gmail.com

Project Link: https://github.com/Nicholene/Diet_Detective

Acknowledgments

This project was made possible thanks to:

  • Online Courses: Codecademy, Coding with Mosh, and Study.com.
  • Java Spring Boot: The main framework used.
  • Maven: The project management tool used.
  • H2 Database: The in-memory database used.
  • cURL and JSON: Used for API communication.
  • GitHub: Used for version control and collaboration.
  • Stackoverflow: Used for problem solving.