Code Monkey home page Code Monkey logo

kotlin-multiplatform-firebase's Introduction

Kotlin Multiplatform Firebase.

Build Status Kotlin

Kotlin is everywhere!

This project demonstrates the benfits of kotlin multiplatform by implementating a multiplatform mobile application (Android/iOS) with firebase as a backend (Node.js) all in kotlin.

The application is using Firestore to store a list of posts and firebase functions to send notifications for new posts.

Modules.

  • common-all - Multiplatform Module - shared code between clients/server.
  • common-client - Multiplatform Module - shared code between clients (Android/iOS).
  • firebase - Node.Js app.
  • android - Android app.
  • iOS - iOS app.

modules_diagrams

Project Architecture

modules_diagrams

common-all

Clients/Server shared code.

  • Data Models.
  • Repositories.

common-client

Clients shared code.

  • Presenters.

Platform specific code.

  • Views.

Testing

Testing libraris

Common module testing. https://github.com/mockk/mockk

JVM

JS

Jest https://jestjs.io/

Native

//TODO

Build run and test.

Setup

  1. Clone this project.
  2. enable kotlin 1.3 (https://proandroiddev.com/setup-kotlin-eap-in-your-android-app-73f2c06308e5)
  • if you're using the canary version of Android Studio check if kotlin 1.3 plugin is enabled for your version

https://plugins.jetbrains.com/plugin/6954-kotlin

Running the Android app.

./gradlew android:app:installDebug

Running the iOS app.

//TODO

Running the Node.js App (deploy to Firebase)

  1. cd firebase/functions
  2. npm install
  3. ./gradlew common-all:firebaseDeploy

Testing the Node.js App.

  • ./gradlew common-all:firebaseTest

Libraries used in this project

common

kotlin-multiplatform-firebase's People

Contributors

danm72 avatar oollan avatar oronbz avatar rubylichtenstein avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

kotlin-multiplatform-firebase's Issues

How to use

Hello, how can I use this project? Can u provide some wiki please?

JVM support

Firebase doesn't have support for JVM clients (like a tornado FX app) it would be great to add support using an embedded node.js instance. Maybe using something like this: https://github.com/apigee/trireme and map the entry points.

Exclude Pods from git

Hi, your project is shown as made ouf of a lot of C++ and Obj-C because all the Cocoapods are dumped into this repo.

I'm requested that they are removed and ignored from the git repo, letting Cocoapods get them from cache or the internet when needed.

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.