- Full-features full-fledged production-grade eCommerce modern web application powered by Spring Boot and Angular
JDK 11 (LTS)
Node 12.18.3 (LTS)
NPM 6.14.6
MySQL Server 8
IntelliJ IDEA
Postman or Insomnia
Maven
(forProduction Environment
only).
- Open root folder in
IntelliJ IDEA
. - Edit file
application.yml
(MySQL server's account and version) according to your database or setup environment variables. - Running the first 2 lines in file
db/run.sql
to create a database (schema) nameflowershop
in the MySQL Server. - Launch Spring Boot
FlowershopApplication
. The tables will be create if run the first time. - Run the rest in file
db/run.sql
to fill default data for our application. - In
Postman
, callPOST
athttp://localhost:8080/api/test
with theJSON body
copied fromdb/mock-test.json
. - In
Postman
, callPOST
athttp://localhost:8080/api/product
with theJSON body
copied fromdb/product.json
. - Run
npm install
incmd
(orterminal
) insidefrontend
folder. - Open
frontend/package.json
and click on thegreen arrow
besidestart-dev
to runfrontend
in development mode. - Open browser at
http://localhost:4200
to access our application.
- Production environment needs only
JDK 11
,Maven
andMySQL Server 8
installed. Then setupdatabase
andapplication.properties
properly as inDevelopment Environment
. - Run
mvn package
incmd
inside root folder. This will create aJar
package insidetarget
folder namedflowershop-1.0.jar
. - Run this
Jar
package incmd
by this commandjava -jar target/flowershop-1.0.jar
. - Access our application via an endpoint, for example an
AWS Cloud Endpoint
.
- Guess Site shop page
- Guess Site shopping cart
- Member Site account details
- Admin Site products listing
- Admin Site transaction summary
- Admin Page create new product
- Admin Page import products from Excel
- Admin Page export products to Excel
- Admin Page edit product
- Admin Page batch delete
- Product details displays when clicked
[INFO] Results:
[INFO]
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO]
[INFO] --- maven-jar-plugin:3.2.0:jar (default-jar) @ flowershop ---
[INFO] Building jar: /home/lavantien/Documents/dev/flowershop/target/flowershop-1.1.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:2.3.2.RELEASE:repackage (repackage) @ flowershop ---
[INFO] Replacing main artifact with repackaged archive
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 44.918 s
[INFO] Finished at: 2020-08-07T00:57:12+07:00
[INFO] ------------------------------------------------------------------------