ricardolasso / WWERapp

0 stars 0 forks source link

Original App Design Project - README Template

hackmd-github-sync-badge

WWERapp

Table of Contents

  1. Overview
  2. Product Spec
  3. Wireframes
  4. Schema

Overview

Description

WWERApp allows you to view information about consoles and video games such as avaliability and prices by taking API data from alerts by social media accounts and other existing game information websites.

App Evaluation

[Evaluation of your app across the following attributes]

Product Spec

1. User Stories (Required and Optional)

Required Must-have Stories

Optional Nice-to-have Stories

2. Screen Archetypes

Tab Navigation (Tab to Screen)

Flow Navigation (Screen to Screen)

Wireframes

[Add picture of your hand sketched wireframes in this section]

ezgif com-gif-maker

Schema

Models

Property Type Description
image File Image that user posts
userName String Name of user account
like Number Number of likes in a specific post
objectId String Unique id for the user post (default field)
password String Password of a specific userName
description String Description of the product posted
price Number Price of items
author String Creator of the post

Networking

@IBAction func signInButton(_ sender: Any) {
        let username = userNameField.text!
        let password = passwordField.text!
        PFUser.logInWithUsername(inBackground: username, password: password){
            (user, error) in
            if user != nil {
                self.performSegue(withIdentifier: "loginSegue", sender: nil)
            }else{
                print("Error: \(error?.localizedDescription)")
            }
        }
    }  

func tableView(_ tableView: UITableView , numberofRowsinSection section: Int) -> Int { let post = posts[section] return post }

tableView.reloadData()

* (Create/POST) Create a new comment

@IBAction func onSubmitButton(_ sender: Any) { let post = PFObject(className: "Posts")

post["caption"] = commentField.text! post["auther"] = PFUser.current()!

let imageData = imageView.image!.pngData() let file = PFFileObject(name: "image.png", data: imageData!) post["image"] = file post.saveInBackground { (success, error) in if success { self.dismiss(animated: true, completion: nil) print("saved!") } else { print("error") } } }

let user = PFUser.current()
let name = user.username
let user = PFUser.current()
let email = user.email
let user = PFUser.current()
let zipCode = user["zipcode"] as! Int

ezgif com-gif-maker (2)

![ezgezgif com-gif-maker (2)

ezgif com-gif-maker (2)

ezgif com-gif-maker (2)