E-Book is an online book library where users can easily buy or borrow books, while administrators have the capability to add, delete, and update books.โก.
๐ก GitHub Repo :- https://github.com/Saurav9284/Book-Library-Backend
๐ก Backend Deploy :- https://book-library-backend-saurav.vercel.app/
๐ก GitHub Repo :- https://github.com/Saurav9284/Book-Library-Frontend
๐ก Frontend Deploy :- https://book-library-saurav01.netlify.app/
- Chakra UI
- auth-contex
- React
- Apollo Client
- Router dom
- Node.js
- Express.js
- MongoDB
- Mongoose
- GraphQL
- Apollo Server
- Email: [email protected]
- Password: Admin@123
- Email: [email protected]
- Password: 123
- Clone the repository.
- Navigate to the frontend directory.
- Run
npm install
to install dependencies. - Run
npm run start
to start the development server.
- Clone the repository.
- Navigate to the backend directory.
- Run
npm install
to install dependencies. - Rename
sample.env.txt
to.env
and fill in the necessary environment variables. - Run
node index.js
to start the development server.
API's are built with graphQL
๐ข books
: Get all books
๐ข book
: Get a single book
๐ข users
: Get all users
๐ข user
: Get a single user profile
๐ createBook
: Create a new Book
๐ updateBook
: Update a Book
๐ deleteBook
: Delete a Book
๐ createUser
: Register a new user
๐ loginUser
: Login a user
๐ Borrowbook
: Borrow book
๐ passwordChange
: Change a user's password
๐ deleteUser
: Delete a user
Note: Only Admin can Create , Update , Delete books