Skip to content

0xNoSystem/Booker-BookManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Booker-BookManager

Welcome to Booker, a simple books library manager to keep track of the books you are reading/finished reading.

I imported the main dataset of books and covers info (25000+ book) from Kaggle, cleaned the csv file to my preference (link to original dataset: https://www.kaggle.com/datasets/lukaanicin/book-covers-dataset/)

Stack:

What i've used to build this app: -nodeJS / ExpressJs -EJS for rendering -PostgreSQL for data storage and manipulation

So make sure you have those installed on your machine, you can download them easily (google search).

After you clone this repo locally, you should have this look:

image I'm using VScode.

FIRST: Database Set-up

I'm using PostgreSQL with pgAdmin4, supposing you have those on your machine, your next steps are:

1.create database

image You can name the database whatever you want, just make sure you use the same name when setting up the connection to the DB using NodeJS.

2.Create BOOKS and NOTES tables

In the query.sql file you will find the SQL queries you need to create the tables, don't change anything about them as that might lead to some problems we don't want.

image

After you create those Tables, we want to import the main-data.csv into your books table.

Steps: Click on import/Export Data image

Make sure you set the File name to the path where you're main_dataset.csv file is located. image

You're options should look like this image

Next we just need to set the columns we want to import (name,author,image,img_paths) image

And finally, this is optional, to remove duplicated books from the database (there are some), you can run the third query from query.sql in your postgres database. image

SECOND:

Go into index.js to setup the connection to the postgres DB.

The Image here represents the 8th line of code in index.js file, make sure to remove the comment (/* and */) and set the user, database, password according to what yours are.

image

it should look like this: image

THIRD:

Run $ npm i express body-parser pg in your terminal, make sure you're in the project directory. image

and final step run $ node index.js and go to your http://localhost:3000/

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published