App allow to user to create his own library, by adding books that have been read to their own list.
- As a user I want to create account to create own library.
- As a user I want to login to my account .
- As a user I want to add book to my list .
- As a user I want to search form my library books.
- As a user I want to logout from my account .
- App Architecture
- file Structure
- public
- index.html
- style.css
- assets folder for images
- src
-srever
- server.js
- router.js
- handler.js
- homeHandler.js
- loginHandler.js
- signupHandler.js
- addbookHandler.js
- tests
- test.js
- database
- db_build.sql
- db_connection.js
- db_build.js
- queries
- getData.js
- setData.js
- check.js
- package.json
- public
- git clone this repo (https://github.com/FACK1/Mylibrary.git)
- Open your command line.
- Put in terminal : npm install .
- create database **CREATE DATABASE ; **
- create uesrname and password CREATE USER ;
- grant prinileges GRANT ALL PRIVILEGES ON DATABASE TO ;
- make config.env file and put DATABASE_URL= postgres://uesrname:password@localhost:5432/dbname
- Put in terminal : node database/db_build.js.
- Then put in terminal : npm run dev to run the server.
- Open your browser and put in terminal: localhost:3000.
- Hadeel Slamin
- Aman Shawar
- Sama' Amro