Dispatcher Cart is a fully open-source eCommerce application that offers a wide range of products, including groceries, electronics, beauty products, fitness items, and much more. The application is designed to be user-friendly, scalable, and robust for online shopping needs.
- ✅ Wide Product Range: Shop for groceries, electronics, beauty, fitness, and more in one app.
- ✅ Open Source: Completely free to use, modify, and contribute to.
- ✅ Cloud Deployment: Hosted on DigitalOcean for high availability and scalability.
- ✅ Modern UI/UX: Clean and intuitive interface for seamless navigation and shopping experience.
- ✅ Secure Checkout: Safeguards user data with secure payment options.
- Backend: Spring Boot (Java 17)
- Frontend: Thymeleaf + HTML/CSS
- Database: MySQL
- Deployment: DigitalOcean Droplet
- Build Tool: Maven
Check out the live application here: Dispatcher Cart Live
(Ubuntu 24.10 x64 | 1GB Memory | 10GB Disk | SGP1)
- Java 17+
- Maven or Gradle
- MySQL or PostgreSQL
- DigitalOcean Droplet (optional for deployment)
-
Clone the repository:
git clone https://github.com/Joaquin144/DispatcherCart.git cd dispatcher-cart
-
Configure the database:
- Update the application.properties file in the src/main/resources directory with your database credentials.
spring.datasource.url=jdbc:mysql://localhost:8080/dispatcher_cart spring.datasource.username=your-username spring.datasource.password=your-password
-
Build the project:
mvn clean install
-
Run the application:
java -jar target/dispatcher-cart-0.0.1-SNAPSHOT.jar
-
Access the application: Open your browser and visit http://localhost:8080.
-
Setup a DigitalOcean droplet. Min requirements: 1vCPU, 1GB Memory, 10 GB Disk, Cost around USD 6$ per month).
-
Transfer the .jar file from local machine to server
scp target/dispatcher-cart-0.0.1-SNAPSHOT.jar your-user@your-droplet-ip:/path/to/deployment
-
SSH login into the server:
ssh droplet-user@your-droplet-ip
-
Run the application
java -jar /path/to/deployment/dispatcher-cart-0.0.1-SNAPSHOT.jar
-
Alternatively, if you want to run the server permanently then you might want to create a start.sh bash script.
#!/bin/bash nohup java -jar /projects/dispatcher-cart-0.0.1-SNAPSHOT.jar --spring.profiles.active=prod > /projects/log.txt 2>&1 & echo $! > /projects/pid.file
- Use command to start service which won't be terminated when you close the SSH session.
sudo ./start.sh
Below are some screenshots of the Dispatcher Cart deployed on a DigitalOcean Droplet:
The dashboard showing the created droplet for hosting Dispatcher Cart.
Dispatcher Cart running live on the droplet.
The estimated bill on DigitalOcean for the aforementioned configuration
Looking for a reliable cloud platform? Sign up for DigitalOcean through my referral link and get $200 in free credit (valid for 60 days)! 🚀
Why choose DigitalOcean?
- Affordable Pricing: Perfect for developers and startups.
- Easy Setup: Get your servers running in minutes with an intuitive interface.
- High Performance: Reliable and scalable cloud solutions.
Start your cloud journey today and power up your projects with DigitalOcean! 💻
-
LinkedIn: Let's connect and network on LinkedIn.
-
GitHub: Check out my repositories and contributions on GitHub.
-
Gmail: Mail to me at my gmail id
-
Play Store: Explore my apps on the Play Store.