Preetiraj3697 / ReactJS-Integration-with-Backend

This project showcases the integration of React frontend with Express backend for managing user data. Features include CRUD operations via RESTful APIs, React Router navigation, MongoDB integration, and separate READMEs for frontend and backend setup.

Home Page:https://react-js-integration-with-frontend-backend.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Frontend README


React-Express User Data Manager

Frontend - ReactJS Integration with Backend APIs

This project demonstrates the integration of a ReactJS frontend with backend APIs for managing user data.

Deploy Link:

https://react-js-integration-with-frontend-backend.vercel.app

Features

  • Displaying user data fetched from the backend API.
  • Adding new entries to the user data through the frontend interface.
  • Updating existing user data using the provided form.
  • Displaying counts of add and update operations.

Technologies Used

  • ReactJS
  • Axios for HTTP requests
  • React Router for navigation

Setup Instructions

  1. Clone the repository to your local machine:
git clone https://github.com/Preetiraj3697/ReactJS-Integration-with-Backend.git
  1. Navigate to the frontend directory:
cd client
  1. Install dependencies:
npm install
  1. Start the development server:
npm start
  1. Open your browser and visit http://localhost:3000 to view the application.

Usage

  • Navigate between different pages using the navigation links.
  • Use the "AddEntry" page to add new entries to the user data.
  • Use the "Home" page to view the existing user data and update entries if needed.

Responsive Design

The application is designed to be responsive on various devices:

  • Mobile
  • Tablet
  • Desktop

Backend README


React-Express User Data Manager

Backend - ExpressJS API for User Data Management

This project provides an ExpressJS backend API for managing user data.

Deploy Link:

https://react-js-integration-with-backend-yaf6.vercel.app/api/entries

Features

  • API endpoints for adding new entries and updating existing entries in the user data.
  • API endpoint for fetching the count of add and update operations.
  • MongoDB database integration for storing user data.

Technologies Used

  • ExpressJS
  • MongoDB
  • Mongoose for MongoDB integration
  • cors
  • nodemon

Setup Instructions

  1. Clone the repository to your local machine:
git clone https://github.com/Preetiraj3697/ReactJS-Integration-with-Backend.git
  1. Navigate to the backend directory:
cd server
  1. Install dependencies:
npm install
  1. Set up your MongoDB database and update the connection URL in app.js if needed.

  2. Start the server:

npm start
  1. The server will start running on http://localhost:3000.

API Endpoints

  • POST /api/entries/add: Add a new entry to the user data.
  • POST /api/entries/update/:id: Update an existing entry in the user data.
  • GET /api/entries: Get the user data.
  • GET /api/entries/count: Get the count of add and update operations.
  • Delete /api/entries/:id: Delete the user data from existing user Data.

Usage

  • Send HTTP requests to the appropriate endpoints to add or update user data.
  • Use the provided count endpoint to monitor the number of add and update operations.

Feel free to reach out if you have any questions or need further assistance!

🌐 Connect with me:

About

This project showcases the integration of React frontend with Express backend for managing user data. Features include CRUD operations via RESTful APIs, React Router navigation, MongoDB integration, and separate READMEs for frontend and backend setup.

https://react-js-integration-with-frontend-backend.vercel.app


Languages

Language:JavaScript 65.3%Language:CSS 32.5%Language:HTML 2.2%