An open API service indexing awesome lists of open source software.

https://github.com/avd1729/dummy-json

The project is a microservices-based web application that provides users with access to recipes and products. It consists of multiple components, including a Recipe Microservice and a Product Microservice, each responsible for handling specific functionalities.
https://github.com/avd1729/dummy-json

docker flask restful-api

Last synced: about 2 months ago
JSON representation

The project is a microservices-based web application that provides users with access to recipes and products. It consists of multiple components, including a Recipe Microservice and a Product Microservice, each responsible for handling specific functionalities.

Awesome Lists containing this project

README

          

# Dummy JSON

The project is a microservices-based web application that provides users with access to recipes and products. It consists of multiple components, including a Recipe Microservice and a Product Microservice, each responsible for handling specific functionalities. These microservices are built using Flask, a Python web framework, and are deployed as Docker containers. The front end of the application is an HTML page that communicates with the microservices via RESTful APIs. Users can retrieve recipe and product data by interacting with the web interface. The project demonstrates the use of microservices architecture, containerization with Docker, and RESTful API design principles.

## Features

- **Retrieve Recipes:** Users can fetch recipes from the Recipes microservice by clicking the "Get Recipes" button.
- **Retrieve Products:** Users can fetch products from the Products microservice by clicking the "Get Products" button.

## Prerequisites

Before running the project, ensure you have the following installed:

- Python 3.x
- Flask
- Requests (if not using Flask to make requests)

## Installation

1. Clone the repository:

```bash
git clone
```

2. Navigate to the project directory:

```bash
cd Dummy-JSON
```

3. Build the Docker image:

```bash
docker build -t microservices-website .
```

4. Run the Docker container:

```bash
docker run -p 5002:5002 microservices-website
```
5. Ensure the Recipes microservice is running. If not, clone the repository and follow the instructions in its README file to start the service.

Repository URL: [Recipes Microservice](https://github.com/avd1729/Recipe-Microservice)

6. Ensure the Products microservice is running. If not, clone the repository and follow the instructions in its README file to start the service.

Repository URL: [Products Microservice](https://github.com/avd1729/Product-Microservice)

## Usage

1. Open your web browser and navigate to [http://localhost:5002/](http://localhost:5002/).

2. Click the "Get Recipes" button to retrieve recipes from the Recipes microservice.

3. Click the "Get Products" button to retrieve products from the Products microservice.

## Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

## License

This project is licensed under the [Apache 2.0](LICENSE).