Shoppie is an e-commerce application with a Spring Boot backend and a Next.js TypeScript frontend. It provides functionalities for managing products, adding items to the cart, and viewing detailed product information.
- Frontend: Next.js with TypeScript
- Backend: Spring Boot
- Frontend Hosting: Hostinger VPS
- Backend Hosting: Hostinger VPS
- Product listing and details
- Cart management
- Product search and filtering
- User authentication (optional)
- Java 17 or later
- Docker
- Docker Compose
- Node.js (for frontend)
-
Clone the Repository
git clone https://github.com/dipenbhat557/Shoppie.git cd Shoppie
-
Navigate to the Backend Directory
cd backend
-
Run the Backend with Docker
Build and run the backend services using Docker Compose:
docker-compose up --build
This will build the Docker images and start the Spring Boot application. The backend will be accessible at
http://localhost:8080
by default.
-
Navigate to the Frontend Directory
cd frontend
-
Install Dependencies
npm install
-
Start the Development Server
npm run dev
The frontend will be accessible at
http://localhost:3000
.
-
Connect to Your VPS
Use SSH to connect to your Hostinger VPS:
ssh your-username@your-vps-ip
-
Clone the Repository on VPS
Navigate to the desired directory and clone the repository:
git clone https://github.com/dipenbhat557/Shoppie.git cd Shoppie/backend
-
Build and Run Backend with Docker
Build and run the backend services using Docker Compose:
docker-compose up --build -d
The backend should now be running on your VPS. Make sure to configure your domain or IP to route to the backend application if necessary.
The frontend is already deployed and can be accessed at:
- Frontend: https://sidd.live
- Fork the Repository: Click the "Fork" button at the top right of this page.
- Clone Your Fork:
git clone https://github.com/your-username/Shoppie.git
- Create a New Branch:
git checkout -b feature/your-feature
- Make Your Changes: Develop your feature or fix a bug.
- Commit Your Changes:
git commit -am 'Add new feature'
- Push to the Branch:
git push origin feature/your-feature
- Create a Pull Request: Go to the GitHub repository and create a new pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or inquiries, please contact:
- Dipendra Bhatt: dipenbhat557@gmail.com
### Notes:
- Replace `your-username` and `your-vps-ip` with your actual VPS username and IP address.
- Make sure to adjust the domain or IP in the API base URL section to match your VPS setup.