Skip to content

This backend server handles server-side application operations of the frontend application called (Booktopia)

License

Notifications You must be signed in to change notification settings

akapez/book-store-be

Repository files navigation

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.

About

This backend server handles server-side application operations of the frontend application called (Booktopia)

Topics

Resources

License

Stars

Watchers

Forks