Skip to content

Latest commit

 

History

History
81 lines (52 loc) · 1.74 KB

README.md

File metadata and controls

81 lines (52 loc) · 1.74 KB

Bookshop

Bookshop site in React (redux) + NodeJS + Express + Oracle

Disclaimer!

The design of the page was taken from the https://www.bookdepository.com/. This project was created for only educational purposes. We do NOT intend to produce any commercial content from this!

Insights

Home page

More: documentation/screenshots

Setup & Run

Prerequisites:

Client & Server

  • NodeJS version: 16 (not supported: 17)
  • Web browser: Chrome, Mozilla firefox,

Database

  • Docker
  • Oracle [db] version: oracle-12c

Installation

React & Nodejs

To install the dependencies go to /client & /server then run:

npm install

Oracle

Detailed installation: https://github.com/MaksymBilenko/docker-oracle-12c

  1. Download docker image:

    docker pull truevoly/oracle-12c
    
  2. Download oracle-client [Version 19.14.0.0.0]
    https://www.oracle.com/database/technologies/instant-client/linux-x86-64-downloads.html
    [Windows/MacOS]: Change libPath location in server/src/dao/main_dao.js to your downloaded oracle-client path
    [Linux]: download libaio1 && export oracle-client to path

    sudo apt-get install libaio1
    
    export LD_LIBRARY_PATH=/home/user/oracle/instantclient_19_14:$LD_LIBRARY_PATH
    

Run

Webserver

/server -> npm start

Client

/client -> npm start

Database

Run docker image

[Windows]:
Start oracle-12c in your Docker desktop app

[Linux]:

docker run -p 8080:8080 -p 1521:1521 truevoly/oracle-12c

You can use SQLDeveloper for managing the database