A Fullstack crud operations built with React.js, MongoDB, and Node.js, RTK Query.
- RTQ Query Endpoints: Using RTK Query allow to create endpoints for api requests, no need for dispatch or reducer again. with using generated custom hooks that is exported from the api allowing to check for loading and error, fetching and success while sending requests for database.
- Create New Item: Allow users to create items that stored on mongoDB.
- Delete Item: Allow users to delete items that stored on MongoDB.
- Edit Item: Allow users to edit items that stored on MongoDB.
-
Clone the repository:
git clone https://github.com/Shaban-Eissa/RTK-Query-MongoDB
-
Navigate to backend folder and install dependencies:
npm install
-
Run your backend:
npm run start
-
Create .env file contain MongoDB url:
MONGODB_URI = mongoDB_url
-
Navigate to frontend folder and install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser and visit http://localhost:3000.
This project utilizes a fullstack to work with RTK Query:
- React
- RTK Query
- MonogoDB
- Node.js
Contributions are welcome! Please follow these guidelines:
- Fork the repository.
- Create a new branch for your feature/bugfix:
git checkout -b feature-name
. - Commit your changes:
git commit -m 'Add some feature'
. - Push to the branch:
git push origin feature-name
. - Open a pull request.