BookHub is a free and open-source website, for reading/downloading books. Just create an account and read all the books you would like, for free or download ePubs. We also allow users to post comments (with attachments), to share their opinions on the book.
![Image Description](https://private-user-images.githubusercontent.com/78937026/253714280-f7fd4936-83bd-42e4-aa1e-e8b887252914.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE5NTkzOTksIm5iZiI6MTcyMTk1OTA5OSwicGF0aCI6Ii83ODkzNzAyNi8yNTM3MTQyODAtZjdmZDQ5MzYtODNiZC00MmU0LWFhMWUtZThiODg3MjUyOTE0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI2VDAxNTgxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM3ZmNhNzQyYWFkMzUwNmZiNTRlZjY2YTBmYTY3NjcyZGI5ZTRkZmYzMmE1M2ZmNmI3Y2JhOGNlNDEyMjEzYWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.e_nGHmNDj0yRsOWlcslvqBXOv8j4HruDzTZwG1R40I0)
Note: You can check out other screenshots here at SCREENSHOTS.md
There are two ways, one can host this locally on their machine
- Install Docker on your machine.
You don't require to build the image, since its already published in DockerHub
- Run the following command
docker run -p 3000:3000 --env-file .env reputation22/bookhub
It requires a .env
file, whose format is given below.
Note: Since MongoDB is not synced in this image, you must create a cloud database on Mongo Atlas.
-
Install NodeJs
-
Install MongoDB
-
Clone this repository by entering the following command on your terminal
-
Create a
.env
file in the root directory. It should look like this
API_KEY=< your Google Books API key >
secret=< your Session secret >
CLOUD_NAME=< your Cloudinary cloud name >
CLOUD_API_KEY=< your Cloudinary API key >
CLOUD_API_SECRET=< your Cloudinary API secret >
DB_URL=< your mongo atlas URL >
Open the folder, and install the dependencies, by
npm install
Now start the local server on your machine, by
npm start
Visit localhost:3000
on your browser to open the website.
You can get a Google Books API Key, from here, and Cloudinary API Key from here.
For the Production environment/building with docker, we use Mongo Atlas database, so make sure to register there, get your own Database URL, and put it in the .env
file