Git Product home page Git Product logo

facebooklogin's Introduction

Facebook Login

About

The app features login with Facebook, showing most important user information.

It was taken into consideration the overall architecture and code organization. The code is kept clean with a scalable and easy-to-maintain structure.

It was developed with the latest XCode and iOS, and it's easily upgraded to the upcoming versions of the tool and OS.

Requirements

  • iOS 12+
  • Swift 5.0

Features

  • Allow login with facebook
  • Remember last session using Realm database
  • Shows most important user information in a UITableView
  • Allows logout (wipes database)

Structure

App is devided in 5 base folders:

  • Modules: Where all UI components are located (Login/Profile).
  • Library: App logic, components, extensions, models and managers.
  • Assets: Assets such as images, fonts, etc.
  • Localizations: App translation files.
  • Supporting Files: App delegate and other supporting files.

Design Patterns

  • MVVM: Used in profile, to provide information to the UI. Separated in 2 files, ViewModel and DataSource. The first provides the Information and the last one feeds the TableView.
  • Delegates: Being used mostly in Profile UI by the DataSource file to handle interaction with the ViewController.
  • Singletons: Used as single instance of Managers.
  • Coordinator: Not the standard implementation of Coordinators, but this will be responsible for routing from one screen to the other.

Tests

Covered most relevant portion of the code with the following tests

  • Unit Tests: They are located together with their respective classes for better maintainance and readability. (ProfileDataSourceTests, TimeManagerTests, UserTests)
  • UI Tests: Located under FacebookLoginUITests. Testing the main flow of login and logout.

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.