curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install npm -g
Navigate to Bookstore-Frontend/public_html
sudo -H npm install
sudo -H npm start
Access to front-end at localhost:3000
Delete build.xml
in the project root. NetBeans may prevent an import if there is build.xml
.
File -> New Project -> Java EE -> Enterprise Application with Existing Sources -> next
- Location: cloned project directory
- Project folder: select any
- Click next
Keep default:
- Server: GlassFish server 4.1.1
- JavaEE: latest (EE7)
- Click next
Add application modules:
- Add BookstoreDomain as EJB module
- Add BookstoreService as Web module
Configure connection pool, and set datasource name to "jdbc/aip" so that JPA can recognize
Setup JDBC realm: