Giter Site home page Giter Site logo

kuldeepstechwork / simple-microservices-with-fastapi-and-react Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 40.3 MB

This is a simple microservices app built with FastAPI and React, using RedisJSON for the database and Redis Streams for event dispatch. It provides a user-friendly interface and easy data storage and event dispatch for microservices apps.

Python 47.57% HTML 19.77% CSS 10.69% JavaScript 21.97%
fastapi microservices reactjs redis-streams redisjson

simple-microservices-with-fastapi-and-react's Introduction

Simple-Microservices-with-FastAPI-and-React

Simple Microservices App with FastAPI and React

Introduction This project is a simple microservices app that is built using Python FastAPI for the backend and React for the frontend. The app utilizes RedisJSON as a database and uses Redis Streams for event dispatch. Here we have two repositories. Frontend and Backend. The Frontend repo contains the code for the Frontend and the Backend repo contains the code for the Backend.

Prerequisites Before starting this project, make sure that you have the following tools installed:

For Backend:-

  1. First we need to install python 3.10
  2. Install the packages listed in the requirements.txt file inside the Backend repo. To install the packages we can directly use the command pip install -r requirements.txt

Setting up the Environment:- Create a new Python virtual environment and activate it: python3 -m venv venv source venv/bin/activate

For Frontend:- Create a new React project and install the required npm packages: npx create-react-app my-app cd my-app npm install

Running the App:-

  1. Start the Redis JSON and Redis Streams databases.
  2. Start the FastAPI server by running the following command: uvicorn main:app --reload
  3. Start the React app by running the following command: npm start

Features:-

  1. User-friendly interface built with React.
  2. Backend built with Python FastAPI, a modern and fast framework for building APIs.
  3. Database powered by RedisJSON, a NoSQL database.
  4. Event dispatch using Redis Streams, an event bus similar to RabbitMQ or Apache Kafka.

Conclusion:- This project provides a simple but powerful way to build microservices apps with Python and React. The use of RedisJSON and Redis Streams allows for easy data storage and event dispatch, making it a great choice for microservices apps.

simple-microservices-with-fastapi-and-react's People

Contributors

kuldeepstechwork avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

nkmwambs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.