An open API service indexing awesome lists of open source software.

https://github.com/xaliz-06/rebook-backend

[BACKEND] Web-app project to search for a location and buy and sell books.
https://github.com/xaliz-06/rebook-backend

cloudinary express jwt mongodb mongoose nodejs stripe-api typescript

Last synced: 3 months ago
JSON representation

[BACKEND] Web-app project to search for a location and buy and sell books.

Awesome Lists containing this project

README

          

# RE-BOOK (Back-end)

This is the repository for Re-Book back-end files.

Re-Book is a web-app project of mine which lets users buy and sell books from a location. The idea is to build an app from where a person can search for cities and towns and look for people who are selling their books by creating a store on the platform.

## Live Link
https://rebook-frontend.onrender.com/

## Features

* Create your profile and set up your store to list, delist or update books for sale.
* Search for a location, store or genre and get stores in that location, or relevant to the genres and filter the stores by genre.
* Order from any store through a payment flow and track your order status.
* Change order status of orders for your own store.

## What I used for this project (backend dependencies)

* TypeScript
* Node.js and Express
* MongoDB, Mongoose (ORM)
* jsonwebtoken, multer, cors
* Cloudinary for image upload
* Stripe API and SDK for payment processing

## Installation

1. Clone the repository and install the dependencies
```bash
git clone https://github.com/xaliz-06/rebook-backend.git
cd backend
npm install
```
2. Set up required environment variable

3. Run the server locally
```bash
npm run dev
```
The server will run at http://localhost:5000/ by default.

3. Build for production
```bash
npm run build
```
4. Run the production server
```bash
npm start
```

## Documentation

[TypeScript](https://www.typescriptlang.org/docs/) |
[Stripe](https://docs.stripe.com/) |
[Node.js](https://nodejs.org/docs/latest/api/) |
[Express](https://expressjs.com/) |
[MongoDB](https://www.mongodb.com/docs/) |
[Mongoose](https://mongoosejs.com/docs/) |
[jsonwebtoken](https://www.npmjs.com/package/jsonwebtoken) |
[multer](https://www.npmjs.com/package/multer) |
[Cloudinary](https://cloudinary.com/documentation) |

## Link to Front-end Repository
https://github.com/xaliz-06/rebook-frontend.git