devsync23 / haves-and-needs-service

0 stars 0 forks source link

Haves and Needs Backend

Description

Haves and Needs is a backend service for a web application where users can post items they have and want to get rid of, or post requests for items they are in need of. Users can fulfill each other's requests by browsing available items and offering to provide what's needed.

This application is built using Node.js and Express, with MongoDB as the database backend.

Installation

  1. Clone this repository to your local machine.
  2. Navigate to the project directory.
  3. Run npm install to install the dependencies.

MongoDB Setup

  1. Install MongoDB if you haven't already. You can download it from here.
  2. Install MongoDB Compass for visualizing the data. You can download it from here.
  3. Start MongoDB server by running mongod in your terminal.
  4. Open MongoDB Compass and connect to the MongoDB server running locally (mongodb://localhost:27017).

Startup Instructions

  1. Make sure MongoDB server is running.
  2. Navigate to the project directory.
  3. Run npm start to start the server.
  4. You should see a message indicating that the server is running on a specific port.

Directory Structure

src
├── fulfillments
|   └── TODO
├── haves
|   └── TODO
├── middleware
│   └── auth.ts
├── needs
|   └── TODO
└── users
    ├── user.controller.ts
    ├── user.model.ts
    └── user.types.d.ts
├── constants.ts
├── db.ts
├── index.d.ts
├── index.ts
└── router.ts

Usage

@TODO add API documentation

Contributors

License

This project is licensed under the MIT License.