Skip to content

Latest commit

 

History

History
72 lines (48 loc) · 2.19 KB

README.md

File metadata and controls

72 lines (48 loc) · 2.19 KB

Backend Server for Bookstore Application

This project is built using NestJS, MySQL with Prisma for the database, JWT for authentication, and Cloudinary for file uploads.

Table of Contents

Features

  • NestJS Backend: A robust backend framework for building scalable server-side applications.
  • MySQL with Prisma: Prisma is used as the ORM for database operations.
  • JWT Authentication: Secure authentication using JWT access and refresh tokens.
  • File Upload: Cloudinary is integrated for handling file uploads.

Installation

  1. Clone the repository:

    git clone https://github.com/akapez/book-store-be.git
    cd book-store-be
  2. Install dependencies:

    yarn install
  3. Set up environment variables: Create a .env file in the root directory and add the following variables:

    DATABASE_URL="mysql://johndoe:mypassword@localhost:3306/mydb?schema=public"
    
    AT_SECRET=your-access-token-secret
    RT_SECRET=your-refresh-token-secret
    
    CLOUDINARY_CLOUD_NAME=your-cloudinary-cloud-name
    CLOUDINARY_API_KEY=your-cloudinary-api-key
    CLOUDINARY_API_SECRET=your-cloudinary-api-secret

Usage

  1. Start the development server:

    yarn start:dev
  2. The server will start on http://localhost:8080.

Resources

Frontend Repository

The frontend application for Booktopia, built with Next.js, can be found at https://github.com/akapez/book-store-fe.

License

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