DEV Community

ThanidaSangkasanya
ThanidaSangkasanya

Posted on

MiniProject : Atlanta BookShop

Topic1 : System document: Some important/interesting functions in the project

In this project, we use Next.js with TypeScript for building a robust and scalable frontend application. Tailwind CSS is employed to create a responsive and modern design. The project integrates Prisma as the ORM to handle database operations efficiently.

  • Book Search Functionality: The main page allows users to search for books by title, author, or other attributes.
  • User Authentication: The application features login and registration functionality, allowing users to sign up, log in, and access their accounts before purchasing books.
  • Admin/Staff Dashboard: A secured area for staff members to manage books, including adding, editing, or deleting book details such as title, image, stock, and release date. This data is stored in the Prisma database.
  • Prisma Integration: The application interacts with the database through Prisma, ensuring smooth data management and easy database queries.
  • API Routes: The project uses Next.js API routes for handling backend operations, such as user authentication and managing book-related data.

Topic2: How to use System

  1. Main Page:
    On the homepage, users can search for any book by title or other criteria. This search feature helps users find books easily and efficiently.

  2. Navbar:
    The navbar provides Login and Register buttons. Customers must register or log in before making a purchase. User data is securely stored in the Prisma database.

  3. Staff Login and Dashboard:
    Staff members have a dedicated login section. Upon clicking the "Staff Login" button, they will be prompted to enter a password that is pre-configured to confirm their identity.
    After successful login, staff will be redirected to a Dashboard
    where they can:
    -Add new books by entering details such as book name, image,
    -stock quantity, and release date.
    -Edit book details if needed.
    -Delete books from the system.

All data related to books and staff are managed and stored in the Prisma database for smooth operations.

Top comments (0)