Giter Site home page Giter Site logo

pushpalroy / jettaskboardkmp Goto Github PK

View Code? Open in Web Editor NEW
56.0 2.0 3.0 13.36 MB

Compose multi-platform application clone of Trello that runs on Android, iOS and Desktop.

License: Apache License 2.0

Kotlin 99.62% Shell 0.14% Ruby 0.04% Swift 0.20%
android compose compose-multiplatform desktop kotlin kotlin-multiplatform multiplatform trello trello-clone compose-desktop

jettaskboardkmp's Introduction

๐Ÿ“‹ JetTaskBoardKMP - Multiplatform Trello Clone

A clone of Trello app built using Compose Multiplatform for Android, iOS and Desktop.

This app was previously written in Jetpack Compose for Android in JetTaskBoard. Now, it has been migrated to multiplatform.

Pull Requests Badge

Card drag & drop

Change board background

Add and archive card

๐Ÿ‘พ Features

  • Dashboard - View different workspaces
  • Create board/card from dashboard
  • Board - Drag and Drop support
  • Change board background - Uses Unsplash API
  • Board background search feature
  • Add list in Board
  • Add card in Board and quick edit
  • Drag and archive card from list

โš’๏ธ Architecture

JetTaskBoardKMP follows the principles of Clean Architecture.

๐Ÿ‘จโ€๐Ÿ’ป Tech stack

Tools Link
๐Ÿค– Language Kotlin
๐Ÿฉถ Framework Compose Multiplatform
๐Ÿ•œ Lifecycle Essenty
๐Ÿ“ State Management Decompose
๐Ÿ’‰ DI Koin
๐Ÿงญ Navigation xxfast/KRouter
๐ŸŒ Networking KTor
๐Ÿงถ Multi-threading Kotlin Coroutines
๐Ÿ“ผ Persistence Multiplatform Settings
๐Ÿ“ Window Insets InsetsX
๐Ÿ” Zooming Behaviour Zoomables

๐Ÿ–ฅ๏ธ Screenshots

Home Board

How to run the project? โœ…

To run this project, you need the following:

Check your environment

Before you start, use the KDoctor tool to ensure that your development environment is configured correctly:

  1. Install KDoctor with Homebrew: brew install kdoctor

  2. Run KDoctor in your terminal: kdoctor

    If everything is set up correctly, you'll see valid output:

    Environment diagnose (to see all details, use -v option):
    [โœ“] Operation System
    [โœ“] Java
    [โœ“] Android Studio
    [โœ“] Xcode
    [โœ“] Cocoapods
    
    Conclusion:
      โœ“ Your system is ready for Kotlin Multiplatform Mobile development!
    

Otherwise, KDoctor will highlight which parts of your setup still need to be configured and will suggest a way to fix them.

Understanding the project structure

Open the project in Android Studio and switch the view from Android to Project to see all the files and targets belonging to the project:

Your Compose Multiplatform project includes 3 modules:

shared

This is a Kotlin module that contains the logic common for both Android and iOS applications, that is, the code you share between platforms.

This shared module is also where youโ€™ll write your Compose Multiplatform code. In shared/src/commonMain/kotlin/App.kt, you can find the shared root @Composable function for your app.

It uses Gradle as the build system. You can add dependencies and change settings in shared/build.gradle.kts. The shared module builds into an Android library and an iOS framework.

androidApp

This is a Kotlin module that builds into an Android application. It uses Gradle as the build system. The androidApp module depends on and uses the shared module as a regular Android library.

iosApp

This is an Xcode project that builds into an iOS application. It depends on and uses the shared module as a CocoaPods dependency.

How to get started

In local.properties file: Generate the API key from Unsplash API, place the key as unsplash_api_token=<YOUR_API_KEY_HERE>.

Star History

Star History Chart

Run your application

On Android

To run your application on an Android emulator:

  1. Ensure you have an Android virtual device available. Otherwise, create one.

  2. In the list of run configurations, select androidApp.

  3. Choose your virtual device and click Run:

Alternatively, use Gradle

To install an Android application on a real Android device or an emulator, run ./gradlew installDebug in the terminal.

On iOS

Running on a simulator

To run your application on an iOS simulator in Android Studio, modify the iosApp run configuration:

  1. In the list of run configurations, select Edit Configurations:

  2. Navigate to iOS Application | iosApp.

  3. In the Execution target list, select your target device. Click OK.

  4. The iosApp run configuration is now available. Click Run next to your virtual device.

Running on a real device

You can run your Compose Multiplatform application on a real iOS device for free. To do so, you'll need the following:

  • The TEAM_ID associated with your Apple ID
  • The iOS device registered in Xcode

Note Before you continue, we suggest creating a simple "Hello, world!" project in Xcode to ensure you can successfully run apps on your device. You can follow the instructions below or watch this Stanford CS193P lecture recording.

How to create and run a simple project in Xcode
  1. On the Xcode welcome screen, select Create a new project in Xcode.
  2. On the iOS tab, choose the App template. Click Next.
  3. Specify the product name and keep other settings default. Click Next.
  4. Select where to store the project on your computer and click Create. You'll see an app that displays "Hello, world!" on the device screen.
  5. At the top of your Xcode screen, click on the device name near the Run button.
  6. Plug your device into the computer. You'll see this device in the list of run options.
  7. Choose your device and click Run.

On Desktop

To run the application on desktop:

  1. Execute the command from terminal: ./gradlew :shared:run

Find this project useful ? โค๏ธ

  • Support it by clicking the โญ๏ธ button on the upper right of this page. โœŒ๏ธ

License

MIT License

Copyright (c) 2022 Pushpal Roy

Permission is hereby granted, free of charge, to any person obtaining a 
copy of this software and associated documentation files (the "Software"), 
to deal in the Software without restriction, including without limitation 
the rights to use, copy, modify, merge, publish, distribute, sublicense, 
and/or sell copies of the Software, and to permit persons to whom the 
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included 
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.