Code Monkey home page Code Monkey logo

go4lunch_kotlin's Introduction

accueil

GO4LUNCH, Kotlin version, workInProgress (currently being migrated to Flow)

Android application to find restaurants near you. Allow you to choose one for the next lunch and share your selection with your coworkers. You'll also be able to check out where your coworkers are headed for lunch and decide if you want to go with them. Be notified by a push notification before the lunch break: this will inform you of the address and the employees who will be at the same place.

demo

Features

  • Authentification with Gmail and Facebook via Firebase Authentification
  • Main activity:
    • Navigation Drawer (access to your lunch of the day, settings for the notification and logout)
    • SearchView with autocomplete from GoogleMap API

navDrawer

  • 3 fragments:
    • the listView (listAdapter), which displays a list of 20 restaurants with full opening hours
    • the mapView, which displays a GoogleMap with your position and the restaurant list
    • the workmatesView (listAdapter), which displays the coworkers list and if they have chosen a restaurant

mapView         listView         workmatesView

  • A restaurant details activity that allows you to call the restaurant, visit website, add to favorite, select this place for today and see coworkers with the same choice
  • A chat activity that can be launched from the workmatesView
  • Every day, the database will create a collection with the actual date to store the user's choice
  • The notification push is managed with a WorkManager, and will display the notification just before lunch break

Library

  • Material Design:
    • constraint layout
    • coordinator layout
    • collapsing toolbar
  • Glide
  • Firebase Auth
  • Firebase Firestore
  • Facebook SDK
  • Retrofit
  • WorkManager
  • Mockito
  • Desugar

Architecture

  • MVVM with an approach of clean Architecture (viewModel, ViewState, Usecase, Repository)
  • LiveData (currently being migrated to Flow)

Dependency injection

  • ViewModel factory, handmade (soon replaced by Hilt)

Unit tests

  • ViewModel and usecase with Mockito

API

  • Google Map API:
    • place nearby search
    • place details
    • place autocomplete

How to use this app

  • Go to build.gradle line 24 & 25
  • replace OC_P7_Google_Maps_Sdk_key by '"your-google-map-key-here"'
  • or edit/create gradle.properties in user.gradle folder with GOOGLE_MAP_API_KEY="your-google-map-key-here"

Feel free to send feedback about your experience ! Happy coding !

Stéphane

go4lunch_kotlin's People

Contributors

swvp avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

saranimaitra

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.