A sample E-Commerce Command Line Interface app built with Kotlin and MySQL for data storage.
- Clone this repository.
- Setup Database and Project
- Open XAMPP control panel.
- Start on Apache and MySQL
- Open browser → Go to
localhost/phpmyadmin
- Sign in with credentials.
- Select
Import
→ Select File → Choosedb/mykart.sql
file. - Click
Go
. Thus database setup is successful.
- Open IntellJ Idea and Import this project.
- Configure
Config.kt
file. Replace below fields with your confiurations.DATABASE_HOST
- Database Host AddressDATABASE_USERNAME
- Username of your databaseDATABASE_PASSWORD
- Password of your databaseDATABASE_NAME
- Name of your database
▶️ Run project withMyCart.kt
When you'll run this application there you'll need to Login via user/admin account. Database already contains user accounts. You can login with below credentials
Account | Username | Password |
---|---|---|
ADMIN | admin |
admin |
USER 1 | user1 |
user1 |
USER 2 | user2 |
user2 |
dev.shreyaspatil.mycart # Root Package
.
├── admin # Admin Activity Classes
├── user # User Activity Classes
├── common # Common Activity Classes (User and Admin)
├── model # Model classes
├── repository # Single source of data for application
├── session # Session Management Classes
└── utils # Utility Classes / Kotlin extensions
This ER diagram is generated by phpMyAdmin