Welcome to the server-side repository of Fluffy Friends, a soft toy marketplace. This server handles API requests and manages database functionalities.
- Features
- Technologies Used
- Prerequisites
- Project Structure
- Installation
- Configuration
- Live Server
- Running the Application
- API Endpoints
- Also checkout Fluffy-Friends-Client
- Contributing
- License
- CRUD operations for toys.
- Database interactions using MongoDB.
- Environment-based configuration.
- Search and sort functionality for toys.
- Node.js
- Express.js
- MongoDB
- Node.js and npm installed.
- MongoDB installed and running.
├── .gitignore # Lists files for Git to ignore
├── README.md # Project documentation
├── index.js # Main entry point of the application
├── package-lock.json # Exact dependency tree
├── package.json # Project metadata and dependencies
├── vercel.json # Vercel deployment settings
-
Clone the repository:
git clone https://github.com/Tanzeebul-Tamim/Fluffy-Friends-Server cd Fluffy-Friends-Server
-
Install dependencies:
npm install
Create a .env
file in the root directory and add the following environment variables:
PORT=5000
DB_USER=your_db_user
DB_PASS=your_db_password
MONGODB_URI=your_mongodb_connection_string
The server is deployed on this following URL
- Start the server:
npm start
- GET
/allToys
: Get all toys (supports search and pagination) - GET
/totalToys
: Get total count of toys - GET
/allToys/email/:email
: Get toys by seller email (supports sorting) - GET
/allToys/id/:id
: Get a single toy by ID - POST
/allToys
: Add a new toy - PATCH
/allToys/id/:id
: Update toy details - DELETE
/allToys/id/:id
: Delete a toy
Visit the client-side repository of Fluffy Friends website
Feel free to contribute by submitting a pull request. Please ensure that your code follows the project's coding standards and includes relevant tests.
This project is licensed under the MIT License - see the LICENSE file for details.