This project is the Engineer thesis of Wojciech Basiński, Szymon Kupisz, and Jakub Oganowski, conducted under the help of Grzegorz Ostrek, PhD. All rights reserved.
- Requirements:
- NPM installed, version 10.1.0 or newer
- Node.JS installed, version 20.9.0 or newer
- Installation process:
cd Main
npm install
cd ../auth-module
npm install
npm run build
cd ../products-browsing
npm install
npm run build
cd ../products-managing
npm install
npm run build
cd ../user-settings
npm install
npm run build
cd ../user-basket
npm install
npm run build
cd ../user-order
npm install
npm run build
- Running the frontend part: Note: To run the application correctly, the environmental variables, which due to the security concerns were not included in this repo, are needed. To obtain them, please reach the authors of this repo out.
To run the frontend part, at least 7 terminal tabs are required to be up.
In the first six ones, for each of the microfrontends present i.e. auth-module
, products-browsing
, products-managing
, user-settings
, user-basket
, user-order
, execute cd
command and run npm run preview
.
Then, in the last terminal tab remaining, type the following commands:
cd Main
npm run dev
If the application setup was correct, the web application should be available at http://localhost:5173
.
- Instalation process:
cd Admin
npm install
To run the application type npm run dev
in your terminal. The application should be available at http://localhost:5174
.
sudo apt install openjdk-21-jdk -y
java --version
openjdk version "21.0.x" ...
mvn -version
sudo apt install docker.io -y
sudo systemctl start docker sudo systemctl enable docker
docker --version
sudo apt install docker-compose -y docker-compose --version
mvn clean install -DskipTests
nano .env
JWT_SECRET=VGhpcy1pcy1hbi1leGFtcGxlLWJhc2U2NC1zdHJpbmc=
EUREKA_URL=http://eureka-service:8761/eureka/
SPRING_DATASOURCE_URL_AUTH=jdbc:postgresql://postgres-db-auth:5432/auth_db SPRING_DATASOURCE_URL_BASKET=jdbc:postgresql://postgres-db-basket:5432/basket_db SPRING_DATASOURCE_URL_LIKE=jdbc:postgresql://postgres-db-like:5432/like_db SPRING_DATASOURCE_URL_ORDER=jdbc:postgresql://postgres-db-order:5432/order_db
SPRING_DATASOURCE_USERNAME=example_user SPRING_DATASOURCE_PASSWORD=example_password
KAFKA_BROKER=kafka:9092
MONGO_URI=mongodb+srv://admin:[email protected]/dev?retryWrites=true&w=majority&appName=engineering-proj-dev MONGO_DB=dev
CLOUDINARY_CLOUD_NAME=example-cloud CLOUDINARY_API_KEY=123456789012345 CLOUDINARY_API_SECRET=example-secret-key
API_GATEWAY_URL=http://gateway-service:8888/api/v1/gateway
PORT=5000 CHROMA_HOST=chroma
STRIPE_API_KEY=sk_test_4eC39HqLyjWDarjtT1zdp7dc STRIPE_ENDPOINT_SECRET=whsec_exampleSecretKey
SPRING_MAIL_HOST=smtp.gmail.com SPRING_MAIL_PORT=587 SPRING_MAIL_USERNAME=[email protected] SPRING_MAIL_PASSWORD="example-app-password" SPRING_MAIL_SMTP_AUTH=true SPRING_MAIL_SMTP_STARTTLS_ENABLE=true
docker-compose --env-file .env up --build -d