Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

micro Microservices Project

In this project, we will be building a microservices architecture using various technologies. The goal is to create a scalable and maintainable system that can handle different services independently.

Project Structure

The project is organized into several directories, each representing a different microservice. Each service will have its own codebase, dependencies, and configuration files. The main directories include:

  • user-service: Handles user-related operations such as registration, authentication, and profile management.
  • order-service: Manages order processing, including order creation, tracking, and history.
  • product-service: Responsible for product catalog management, including adding, updating, and retrieving product information.

Technologies Used

  • FastAPI: A modern web framework for building APIs with Python 3.7+ based on standard Python type hints.
  • Docker: A platform for developing, shipping, and running applications in containers.
  • MongoDB: A NoSQL database for storing user, order, and product data.
  • gRPC: A high-performance, open-source universal RPC framework for connecting services.

Getting Started

To get started with the project, follow these steps:

  1. Clone the repository:
    git clone https://github.com/ahghanbari/microservices.git
  2. Navigate to the project directory:
    cd microservices
  3. Build and run the Docker containers:
    docker-compose up --build
  4. Access the services through their respective endpoints:
    • Get Help from the API documentation available at:
    • http://localhost:8001/docs for User Service
    • http://localhost:8002/docs for Product Service
    • http://localhost:8003/docs for Order Service.

Contributing

We welcome contributions to the project! If you would like to contribute, please fork the repository and submit a pull request. Make sure to follow the coding standards and include tests for any new features or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

Simple example of microservices, gRPC, FastAPI, MongoDB

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages