Skip to content

This repository contains the server-side codebase for the web application named Fluffy Friends, a soft toy marketplace. Serving as the backend component of the project, it encompasses the logic, APIs and database interactions necessary to power the website's functionality.

License

Notifications You must be signed in to change notification settings

Tanzeebul-Tamim/Fluffy-Friends-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo Fluffy Friends - Server Side

Welcome to the server-side repository of Fluffy Friends, a soft toy marketplace. This server handles API requests and manages database functionalities.

Table of Contents

Features

  • CRUD operations for toys.
  • Database interactions using MongoDB.
  • Environment-based configuration.
  • Search and sort functionality for toys.

Technologies Used

  • Node.js
  • Express.js
  • MongoDB

Prerequisites

  • Node.js and npm installed.
  • MongoDB installed and running.

Project Structure

├── .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

Installation

  1. Clone the repository:

    git clone https://github.com/Tanzeebul-Tamim/Fluffy-Friends-Server
    cd Fluffy-Friends-Server
  2. Install dependencies:

    npm install

Configuration

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

Live Server

The server is deployed on this following URL

Running the Application

  • Start the server:
    npm start

API Endpoints

  • 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

Also checkout Fluffy-Friends-Client

Visit the client-side repository of Fluffy Friends website

Contributing

Feel free to contribute by submitting a pull request. Please ensure that your code follows the project's coding standards and includes relevant tests.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This repository contains the server-side codebase for the web application named Fluffy Friends, a soft toy marketplace. Serving as the backend component of the project, it encompasses the logic, APIs and database interactions necessary to power the website's functionality.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published