A full-stack e-commerce inspired by finn.no application built with Spring Boot and Vue.js.
- Aleksander Evensen
- Conrad Osvik
- Yazan Zarka
- Backend: Spring Boot application with Kotlin
- Frontend: Vue.js application with TypeScript
- JDK 21 or newer
- Node.js 20 or newer
- PNPM package manager
- Docker and Docker Compose (for containerized setup)
-
Clone the repository:
git clone https://github.com/AleksanderEvensen/Fullstack-V2025.git amazoom cd amazoom
-
Navigate to frontend directory:
cd frontend -
Install dependencies:
pnpm install
-
Copy the frontend environment file:
cp .env.example .env
This contains the Mapbox GL token necessary for the map functionality.
The simplest way to run the entire application stack:
docker compose upThis will start both the backend and frontend services along with a MySQL database and MinIO storage bucket.
docker compose up -d database minio # Only run the databse and minio instance
./gradlew bootRunThe application will start at http://localhost:8080
NOTE: In development you need to run both backend and frontend
cd frontend
pnpm run devThe frontend development server will start at http://localhost:8081
docker compose up -d # Will build frontend and backend into a docker image and run with all containersWhen running in a docker image the application is built in production mode. make sure to have the MAPBOX_API_KEY in .env file before building image.
This will serve everything under http://localhost:8080
NOTE: In this step we dont need to run the frontend seperately
./gradlew testcd frontend
pnpm run test:unitNOTE: Backend needs to run for E2E test
docker compose up -d database minio
cd frontend
# Install Playwright browsers if not already installed
pnpm run e2e:install
# Run E2E tests
pnpm run e2e
# Or with UI
pnpm run e2e:ui./gradlew buildcd frontend
pnpm run buildThis will build the frontend assets into the ../src/main/resources/static directory, which will be served by the Spring Boot application.
docker compose buildWhen the backend is running, API documentation is available at:
- Scalar UI: http://localhost:8080/docs.html (recommended)
- Swagger UI: http://localhost:8080/swagger-ui.html
- OpenAPI Schema: http://localhost:8080/openapi-schema.json
VITE_MAPBOX_GL_TOKEN: Mapbox GL access token for maps functionality