This is a project based on an Online Shop with simulated items, I use the following technologies for this project: - Backend: Payara Server managed with Java and Jakarta EE 10, and Postgres database. - Frontend: REACT.
-
Run the Postgres database container, in
backend/docker-compose.yamlwith the following commanddocker compose up --build -d. -
The backend is prepared to run in a Payara Server. I personaly download Payaa 6.2025.3 from NetBeans. Once downloaded go to the Payara's folder, run
./bin/asabin start-domainand go to the Payara Console on "http://localhost:4848". -
Create the Connection Pool of postgres with the following properties:
- URL: jdbc:postgresql://localhost:5432/pscShop
- serverName: localhost
- databaseName: pscShop ("Docker configured")
- user: ander ("Docker configured")
- password: ander123 ("Docker configured")
-
Create the Connection Resource with the name of
jdbc/postgres. -
Go to the
./backendfolder and runmvn clean package cargo:runfor creating a '.war' on./backend/target/- -
Create the Aplication on the Payara Console with the default path
onlineShopand upload the previous '.war' file generated. -
Your backend will be served on "http://localhost:8080/onlineShop".
-
Go to
./frontend. -
Run
npm start. -
Go to "http://localhost:3000".