This project is a full-stack application designed to facilitate the discovery and booking of accommodations. Users can browse various types of rooms, view details about hosts, and manage bookings.
- Frontend: React.js
- Backend: Spring Boot
- Database: PostgreSQL
Follow these steps to set up the project locally:
# Clone the repository
git clone https://github.com/swiftmg0d/accommodations.git
# Navigate to the project directory
cd accommodations
# Frontend setup
cd frontend
npm install
npm run dev
# Backend setup
cd ../backend
./mvnw spring-boot:run
Containerize and run the app with Docker. Modify .env
file for custom configurations:
# Build and run Docker containers
docker compose up -d
Deploy the app on Kubernetes. If using Docker Desktop, it's recommended to use the docker-desktop context.
For local development, you may need to update your hosts file:
Add this line to your hosts file located at C:\Windows\System32\drivers\etc
127.0.0.1 accommodations.mk
# Apply Kubernetes manifests
kubectl apply -f namespace.yaml -f config_secret.yaml -f workloads.yaml -f service.yaml -f ingress.yaml
Depending on your setup, access the app as follows:
- Frontend:
http://localhost:5137
- Backend API:
http://localhost:8080/api
- Frontend:
http://accommodations.mk
- Backend API:
http://accommodations.mk/api