Skip to content

A sample E-Commerce Command Line Interface app built using Kotlin!

Notifications You must be signed in to change notification settings

PatilShreyas/MyCart-CLI

Repository files navigation

🛒 MyCart

A sample E-Commerce Command Line Interface app built with Kotlin and MySQL for data storage.

Tests

🛠 How to setup?

  • Clone this repository.
  • Setup Database and Project

🗄️ Database / MySQL Setup

  • Open XAMPP control panel.
  • Start on Apache and MySQL
  • Open browser → Go to localhost/phpmyadmin
  • Sign in with credentials.
  • Select Import → Select File → Choose db/mykart.sql file.
  • Click Go. Thus database setup is successful.

💾 Project Setup

  • Open IntellJ Idea and Import this project.
  • Configure Config.kt file. Replace below fields with your confiurations.
    • DATABASE_HOST - Database Host Address
    • DATABASE_USERNAME - Username of your database
    • DATABASE_PASSWORD - Password of your database
    • DATABASE_NAME - Name of your database
  • ▶️ Run project with MyCart.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

🔑 Login Credentials
Account Username Password
ADMIN admin admin
USER 1 user1 user1
USER 2 user2 user2

Package Structure

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

ER Diagram

This ER diagram is generated by phpMyAdmin

MyCart ER Diagram

About

A sample E-Commerce Command Line Interface app built using Kotlin!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published