Git Product home page Git Product logo

digital-book-store's Introduction

Book Management Application

This repository contains a full-stack application code for managing and searching a collection of books. It provides a RESTful API for managing books, integrates MongoDB and Elasticsearch for data storage and search functionality, and offers a user-friendly front-end for exploring books.

Demo

Demo Video

Table of Contents

Features

  • Book Management: Create, update, retrieve, and delete books using the RESTful API.
  • Search Functionality: Search for books based on titles, authors, or descriptions, powered by Elasticsearch.
  • Pagination: Display books in a paginated list on the home page for easy navigation.
  • Data Indexing: Books are automatically indexed in Elasticsearch when created or updated, ensuring real-time search functionality.
  • Database Storage: Utilize MongoDB as the database to store book records, providing robust and reliable data storage.
  • Error handling and validation: Error handling and validation ensure a reliable and secure application.

Technologies

The project utilizes the following technologies:

  • Backend:
    • Node.js: The backend of the application is built using Node.js, providing a fast and scalable runtime environment.
    • Express.js: A web application framework for Node.js for rapid development.
    • MongoDB: MongoDB serves as the database for storing user data, tweets, and other relevant information.
    • TypeScript: TypeScript is used throughout the project to ensure strong type safety and enhance the development process.
    • Elasticsearch: Elasticsearch is used to search, analyze, and store large amounts of data quickly and efficiently.
  • Frontend:
    • Next.js: A React framework for building server-side rendered and statically generated web applications.
    • TypeScript: TypeScript is used throughout the project to ensure strong type safety and enhance the development process.
    • Tailwind CSS: Tailwind CSS is used for styling the frontend, offering a utility-first approach and speeding up the design process.

Installation

To install the application locally, follow these steps:

  1. Clone the repository to your local machine using:
    git clone https://github.com/abhijeetnishal/Digital-Book-Store.git
  1. Navigate to the Server directory using command "cd server" and create a .env file and copy contents of .env.example file to .env file and add all secret keys to setup MongoDB database and elasticsearch(i used elastic cloud free trial). If you don't have accounts create and get secret keys.
  2. Install dependencies in server directory of project:
    npm install
  1. Start the server using comand:
    npm start
  1. To test endpoints visit my Postman collection: https://elements.getpostman.com/redirect?entityId=28883200-f29bcb82-c8b6-46ed-99c6-4fe304a3a17c&entityType=collection

  2. Now navigate to client directory of project using commands:

    cd ..
    cd client
  1. create a .env.local file and copy contents of .env.example file to .env.local file and add host url either it's local development or production.
  2. Install dependencies in client directory of project using command:
    npm install
  1. Start the application using command:
    npm run dev
  1. Open http://localhost:3000 in your browser to see the application.

Usage

  • To use the application, follow these steps:
    1. In Home page, paginated list of books are displayed.
    2. In Search page, we can search books based on author, title or description text.

digital-book-store's People

Contributors

abhijeetnishal avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.