Giter VIP home page Giter VIP logo

bookshop's Introduction

Bookshop demo

Example of MVC EE (J2EE) application of a bookshop using Java back-end and React.js as front-end.

Prequisities
  1. Install jdk 17 or above
  2. Install Tomcat 8
  3. Install Maven 3.8.1 or above
  4. Install Derby 10.15.2.0
Bookshop application
  1. Create bookshop database
  2. Run Database
  3. Build web-application
  4. Deploy and run web-application
Create bookshop database

Run ij Derby tool in the folder where you want to create the database , copy here *.sql files from project root and launch this command :


CONNECT 'jdbc:derby:bookshop;create=true';
run 'bookshop.sql';
run 'insert_bookshop.sql';
commit;
exit

Run Database

In the folder where is created the database launch this command:

.\bin\startNetworkServer.bat

Build web-application

Run the following command :

mvn  clean compile war:war

Deploy and run web-application

Deploying the artifact bookshop.war in Tomcat 8 server and run it, test the application with this link.

http://localhost:8080/bookshop/index.html

You could see the following pages:

React application

Prerequisities
  1. Install npm
Build application

Use react-js folder to play with react , after launch the build:

cd react-js
npm run build

When updated deploy the project web-application again on the server.

bookshop's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.