Giter VIP home page Giter VIP logo

vinsme_challenge's Introduction

SourceSage iOS Challenge - VinSME

VinSME is a app to allow user to sign up, sign in and browse the registered user list Heroku API.

Time spent: 30 hours spent in total

Requirement

The following required functionality is completed:

  • Create an app with 3 screens: Sign Up, Sign In and Home
  • If user is logged in will show Home screen at first otherwise show Sign In screen.
  • Use Swift to develop.
  • Can use storyboard, xib or code to create UI.
  • Can use any libraries.
  • You have 2 days to finish this test.

The following optional features are implemented:

  • Apply MVVM and Coordinator pattern
  • Use RxSwift

The following additional features are implemented:

  • User can pull to refresh at Home screen.
  • Validate user input as typing.

Sign Up

  • Create sign up screen with 6 fields, sign up button and sign in button to navigate to sign in screen
  • Press sign up button -> show red text error below each field if it is empty or not matched with the requirements.
    • If no validation error, call this API to register
    • If fail will return response with status code 500 -> Show alert “There was a problem registering the user.”
    • If success will return response with status code 200 -> Go to Home Screen

Sign In

  • Create a login screen with 2 fields, sign in button and sign up button to navigate to sign up screen
  • Press sign in button -> show red text error below each field if it is empty.
  • If no validation error, call this API to sign in
    • If fail will return response with status code 404 or 401 -> Show alert for 404 “No user found.”, 401 “Password is not correct”
    • If success will return response with status code 200 -> Go to Home Screen

Home

  • Create home screen with a tableView and a logout button on right navigation bar to log out to sign in screen
  • Show list of registered users with this API on TableView with dynamic height for each cell
  • Format CollectionViewCell {Name} {Gender Image} {Age} {Favourite Genres} (Show name of genre)

How to extend the app:

  1. User can sign in using OAuth login flow.
  2. User can load more page once they reach the bottom of the feed using infinite loading.

Video Walkthrough

Here's a walkthrough of implemented user stories:

Sign Up:

SignUp 01

Sign Up - Step 1

SignUp 02_Error

Sign Up - Step 1 - Validation

SignUp 02

Sign Up - Step 1 - Valid Input

SignUp 03_Error

Sign Up - Step 2 - Age Validation

SignUp 03

Sign Up - Step 2 - Genre Validation

SignUp 04

Sign Up - Step 2 - Valid Input

Sign In:

SignIn 01

Sign In

SignIn 02_Error

Sign In - Validation

SignIn 02

Sign In - Valid Input

Home:

Home

Notes

Describe any challenges encountered while building the app.

License

Copyright [2019] [TRUNG]

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

vinsme_challenge's People

Contributors

khanhtrung avatar

Watchers

James Cloos avatar  avatar

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.