Tanzeebul-Tamim/Fluffy-Friends-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • 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
  1. Clone the repository:

    git clone https://.com/Tanzeebul-Tamim/Fluffy-Friends-Server
    cd Fluffy-Friends-Server
  2. 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
  • /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.

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