Lokesh-Bisht /
Books-Directory-GraphQL-version
Full stack MERN Book Directory web app with JWT authentication. Uses GraphQL in the backend.
33/100 healthLoading repository data…
Lokesh-Bisht / repository
Full stack MERN Book Directory web app with JWT authentication. Uses RESTful API in the backend.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
The app uses a Mysql database, TypeORM,and RESTful APIs in the backend. The backend is structured using MVC pattern, and uses entities and repository pattern.
Some of the backend endpoints are public and others are protected. That means no unauthorized user can have access to protected resources. This is achieved by the use of access token for authorizing client requests.
The frontend is build using react and uses react router dom library for navigating between different web pages without reload. And it also usese the axios library for making client requests to the server.
The app uses JWT (Json Web Token) for authoirzing the client/user requests to the server. Each client request to the server contains an access token which is used by the server to identify the user.
Users table
CREATE TABLE `Users` (
`userID` int NOT NULL AUTO_INCREMENT,
`username` varchar(45) NOT NULL,
`email` varchar(45) NOT NULL,
`password` varchar(256) NOT NULL,
PRIMARY KEY (`userID`)
)
Books table
CREATE TABLE `books` (
`id` int NOT NULL AUTO_INCREMENT,
`title` varchar(250) NOT NULL,
`description` varchar(2000) NOT NULL,
`coverImage` varchar(250) NOT NULL,
`userID` varchar(45) NOT NULL,
PRIMARY KEY (`id`)
)
npm install
cd src/frontend
npm install
Add these keys as environment variable in a .env file.
DB_HOST: loclhost or website url
DB_NAME: Database name
DB_USER: Database user
DB_PASSWORD: Database password
PORT: API server port (8080)
ACCESS_TOKEN_SECRET: Use to sign jwt tokens
To start the project in development mode.
Starting backend:
npm run dev
Starting frontend:
cd src/frontend
npm start
To start the project in production.
Starting backend:
npm run build <!-- To generate the build -->
npm start
Starting frontend
cd src/frontend
npm start
For generating errors and warnings:
npm run lint
Read more about the license here: Apache License 2.0
Lokesh Bisht
Selected from shared topics, language and repository description—not editorial ratings.
Lokesh-Bisht /
Full stack MERN Book Directory web app with JWT authentication. Uses GraphQL in the backend.
33/100 healthVrushabhVeer /
Task Management App is a full-stack task manager built with the MERN stack (MongoDB, Express, React, Node.js). It supports user authentication, task CRUD operations, and features like task completion toggling, Pagination etc. The app is styled with TailwindCSS and designed to be mobile-friendly.
34/100 healthasadatik /
📦 ParcelPro — A full-stack MERN application with secure JWT authentication, role-based dashboards (Admin, Sender, Receiver), and real-time parcel tracking with status management.
48/100 healthMatheesha-Abiman /
Full-stack MERN bike rental platform built with React, Node.js, MongoDB, and TypeScript, featuring secure authentication, an admin analytics dashboard, dark mode UI, and an AI-powered chatbot for enhanced user experience.
48/100 healthaditokmoo /
🌐 E-commerce is a full-stack application built on the MERN stack (MongoDB, Express, React, Node.js). This project aims to deliver a seamless shopping experience with essential features such as product listings, user authentication, and a shopping cart.
34/100 healthaditokmo /
🌐 E-commerce is a full-stack application built on the MERN stack (MongoDB, Express, React, Node.js). This project aims to deliver a seamless shopping experience with essential features such as product listings, user authentication, and a shopping cart.
34/100 health