Web Programming Project
This project requires Netbeans 8.2 and JDK 1.8.0. Newer versions might not work properly.
Follow these instructions to add the GlassFish Server to NetBeans IDE.
- Select Tools -> Servers to open the Servers dialog.
- Click Add Server.
- Under Choose Server, select GlassFish v5.1.0 and click Next.
- Under Server Location, browse the location of your GlassFish Server installation and click Next.
- Click Finish
Database Connections for a Data Source in this project will have a reference missing and need to be located manually. A Java DB named wareModel
need to be created first.
- To create one, click the Services tab and Right-click Java DB under the Databases node and select Create Database to open the database creation dialog.
- Create a Java DB Database in the name of
wareModel
. User name and password may not need to be entered. - Click Finish.
To reference to the Java DB you've created earlier, a database connection have to be created.
- Click the Services tab.
- Right-click the Databases node and select New Connection to open the New Connection dialog.
- Under Driver dropdown menu, choose Java DB (Network) then Click Next.
- Set Host to
localhost
and Port to1527
- Set Database to
wareModel
. - Set User Name to
app
. - Set Password to
app
. - Select the Remember Password during this Session box.
- Test Connection to make sure the database works. When the connection is succeeded, click Next.
- Select schema:
APP
- Click Finish.
To be added...
To be added...
ecommerce.sql
file can be executed in the database to create a premade data in this project. This can be re-executed as many times as you want.
Username and password for log in
Username | Password |
---|---|
Allilovely | 12345678 |
ArticleAir | sonasona |
DiscoverMi | abcd1234 |
Fanshomi | iloveecommerce |
If there is any change made on SQL file, all model and controller classes may need to be updated.
- Delete all entity classes from database and create it again.
- Delete all JPA controllers and recreate them all.