REQUIREMENTS DOCKER DESKTOP AND NODE.JS

Step 1: extract the web files into a directory
Step 2: enter nodewebserver in cli and type npm install
Step 3: repeat Step 2 but with nodewebservice
Step 4: go back into the main web files directory in the CLI and with docker desctop open type docker-compose up
Step 5: Once Docker desktop is online go to localhost:8080 which should open up adminer and postgresql
Step 6: Log in with System: PostgreSQL, Server: postgres, Username: docker, Password: password, Database: mydb (This information can also be found in the docker-compose.yml file)
Step 7: Import the Books.sql file.
Step 8: Go to localHost:81, this should take you to the webpage.



NOTE: THERE IS A POSSIBILITY THAT THE Books.sql file fails to import. If this happens please create a table using the adminer and Postgres UI with the fields and data types of
Id integer auto increment
Name text
Description text
ReleaseDate date
Isbn numeric
Genre text
Audience text

OPEN UP Fields.jpg TO HELP WITH THIS.

next, in the adminer UI go to SQL command and paste this code in and execute:

INSERT INTO "Books" ("Id", "Name", "Description", "ReleaseDate", "Isbn", "Genre", "Audience") VALUES
(5,	'Lost Kingdoms',	'Embark on a thrilling adventure with a group of unlikely heroes as they race against time to find a legendary artifact and save their world from imminent destruction.',	'2024-09-20',	9781654321890,	'Adventure',	'Young Adult'),
(6,	'The Enchanted Garden',	'A magical garden holds the key to healing broken hearts and fractured friendships in this heartwarming tale of love and redemption.',	'2024-04-05',	9781478965432,	'Fantasy',	' Child'),
(7,	'Eclipse of Shadows',	'In a dystopian future, a group of rebels fights against a tyrannical regime, discovering the true power of unity and resistance.',	'2024-11-12',	9781122334455,	'Science Fiction',	'Young Adult'),
(8,	'Fatal Deception',	'Detective Angela Stone races against time to solve a series of murders that lead her to a web of lies, deceit, and a shocking revelation that will change her life forever.',	'2024-07-08',	9780765432109,	'Mystery',	'Adult'),
(1,	'Chronicles of Eldoria',	' Join young mage Alaric as he navigates the magical realms of Eldoria to prevent an ancient prophecy from plunging the world into darkness.',	'2024-03-15',	9781543298745,	'Fantasy',	'Teen'),
(2,	'Quantum Nexus',	'In a future where reality can be manipulated, follow detective Lila Kane as she unravels a conspiracy that threatens to reshape the fabric of existence itself.',	'2024-06-08',	9782365897012,	'Science Fiction',	'Adult'),
(3,	'Whispers in the Mist',	'When a small town is haunted by eerie voices, paranormal investigator Emily Harper must confront her own past to unravel the mystery shrouded in the mist.',	'2024-10-03',	9781987654321,	'Mystery',	'Young Adult'),
(4,	'Love Beyond the Stars',	'A cosmic love story unfolds as intergalactic diplomat Zara navigates the complexities of forbidden romance between different species on the verge of war. ac',	'2024-02-14',	9781456789012,	'Romance',	'Adult'),
(10,	'test',	'test',	'2024-01-02',	123,	'Fantasy',	'Child');



ANOTHER POSSIBLE ERROR BECAUSE OF THIS
WHEN ADDING A NEW BOOK, THE FIRST FEW MAY NOT WORK DUE TO THE FACT IT DOESN'T KEEP OVER THE PREVIOUS ID INCREMENTER SO IT WILL ATTEMPT TO DUPLICATE THE PREVIOUS ID. THE FIX IS TO PRESS ADD UNTIL IT CATCHES UP.


--Video Going Over Code--
https://youtu.be/nffk8FyfNto