danteRamirez04
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    The Best Group's App Project - README === # Memerly ## Table of Contents 1. [Overview](#Overview) 1. [Product Spec](#Product-Spec) 1. [Wireframes](#Wireframes) 2. [Schema](#Schema) 3. [Current App](#Current-App) ## Overview ### Description - An app that allows users to make posts about memes. They are able to like and comment on other posts and their own posts they can make captions for. ### App Evaluation - **Category:** Social Media - **Mobile:** This app will be used for mobile devices and will allow them to access their camera roll when posting memes. - **Story:** This app will allow users to post meme pictures, like, and comment on each other user's posts. Similar to iFunny and Instagram. - **Market:** Younger crowd, above 12 years old for safety. Teens, 20s, 30s will be age targets. - **Habit:** This app will be used quite often throughout the day. It will be for people's entertainment. - **Scope:** It is used for entertainment and enjoyment. ## Product Spec ### 1. User Stories (Required and Optional) **Required Must-have Stories** * User can Login * User can register account * User can Post a Meme * User can go to its profile page * User can see feed of all the memes **Optional Nice-to-have Stories** * User can search for accounts or memes ### 2. Screen Archetypes * Login * User can Login * Register * User can register account * Creation * User can Post a Meme * Profile * User can go to their own profile page * Stream * Home Feed - User can see a feed of all the memes * View * One user can see another user's profile (View Only) ### 3. Navigation **Tab Navigation** (Tab to Screen) (Once logged in, these 3 tabs will appear at bottom of each screen) * Home (feed) * Make New Post * Profile **Flow Navigation** (Screen to Screen) * Home Screen -> Login/SignUp Screen (top-left tab) * by clicking the log out button on the Home Screen * Login/SignUp Screen -> Home Screen * by clicking the log in button on the Login/SignUp Screen -> goes to Home Screen to see feed, if the account creditials are correct and exist in database already. * by clicking the sign up button on the Login/SignUp Screen-> goes to Home Screen to see feed, if the username is not already taken. * Home Screen -> Comment Screen * by clicking the comment button for a meme on the Home Screen-> goes to Comment Screen to see all the comments for that meme, and can post a comment * New Post Tab (bottom middle tab) -> Make New Post screen * From any screen, clicking on the New Post Tab will take you to the Make New Post Screen * Make New Post -> Home screen * This is by clicking the PostButton in top-right corner of Make New Post Screen. * post will appear in the top of feed on Home Screen. * Profile Tab (bottom right Button) -> Profile Screen * From any screen, clicking on the ProfileTab will take you to the Profile Screen * Home Screen Tab (bottom left Button) -> Home Screen * From any screen, clicking on the HomeScreenTab will take you to the HomeScreen * Home Screen -> Other User's Profile Screen * From clicking on the post author's username, you will go to that user's profile (Other User's Profile Screen), but they can view only ## Wireframes ![](https://i.imgur.com/mN9MsBk.png =1400x1200) ### [BONUS] Interactive Prototype ![](https://i.imgur.com/WrHWQjW.gif =200x400) ![](https://i.imgur.com/ThP8WtQ.gif =200x400) ![](https://i.imgur.com/JM164rm.gif =200x400) ## Schema ### Models #### Post | Property | Type | Description | | ------------- | -------- | ------------| | objectId | String | unique id for the user post (default field) | | author | Pointer to User| image author | | image | File | image that user posts | | caption | String | image caption by author | | comments | Array of Comments | comments that have been posted to an image | | likesCount | Number | number of likes for the post | | createdAt | DateTime | date when post is created (default field) | | updatedAt | DateTime | date when post is last updated (default field) | #### User | Property | Type | Description | | ------------- | -------- | ------------| | objectId | String | unique id for the user (default field) | | email | String | user's email | | username | String | user's username | | bio | String | user's profile bio | | profilePic | File | image for user's profile picture | | password | String | user's password | | createdAt | DateTime | date when user is created (default field) | | updatedAt | DateTime | date when user is last updated (default field) | #### Comments | Property | Type | Description | | ------------- | -------- | ------------| | objectId | String | unique id for the comment (default field) | | author | Pointer to User| comment author | | post | Pointer to Post| the post that the comment is on | | text | String | comment text | | createdAt | DateTime | date when comment is created (default field) | | updatedAt | DateTime | date when comment is last updated (default field) | ### Networking #### List of network requests by screen - Home Feed Screen - (Read/GET) Query all existing posts ```swift let query = PFQuery(className:"Post") query.order(byDescending: "createdAt") query.findObjectsInBackground { (posts: [PFObject]?, error: Error?) in if let error = error { print(error.localizedDescription) } else if let posts = posts { print("Successfully retrieved \(posts.count) posts.") // TODO: Do something with posts... } } ``` - (Create/POST) Create a new like on a post ```swift func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { let post = posts[indexPath.section] post["likesCount"] = post["likesCount"] + 1 likeButton.setImage(UIImage(named:"like-icon-red"), for: UIControl.State.normal) } ``` - (Delete) Delete existing like ```swift func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { let post = posts[indexPath.section] post["likesCount"] = post["likesCount"] - 1 likeButton.setImage(UIImage(named:"like-icon"), for: UIControl.State.normal) } ``` - (Create/POST) Create a new comment on a post ```swift func messageInputBar(_ inputBar: MessageInputBar, didPressSendButtonWith text: String) { //Create a comment let comment = PFObject(className: "Comments") comment["text"] = text comment["post"] = selectedPost comment["author"] = PFUser.current() selectedPost.add(comment, forKey: "comments") selectedPost.saveInBackground { (success, error) in if success { print("Comment saved") } else { print("Error saving comment") } } tableView.reloadData() //Clear and dismiss input bar commentBar.inputTextView.text = nil showsCommentBar = false becomeFirstResponder() commentBar.inputTextView.resignFirstResponder() } ``` - Create Post Screen - (Create/POST) Create a new post object - (Create/POST) Create new caption for post ```swift @IBAction func photolibButton(_ sender: Any) { let picker = UIImagePickerController() picker.delegate = self picker.allowsEditing = true picker.sourceType = .photoLibrary present(picker, animated: true, completion: nil) } @IBAction func cameraButton(_ sender: Any) { let picker = UIImagePickerController() picker.delegate = self picker.allowsEditing = true if UIImagePickerController.isSourceTypeAvailable(.camera) { picker.sourceType = .camera } else { let alert = UIAlertController(title: "Oop!", message: "Camera is not available!", preferredStyle: .alert) alert.addAction(UIAlertAction(title: "Dismiss", style: .default)) self.present(alert, animated: true, completion: nil) } present(picker, animated: true, completion: nil) } func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) { let image = info[.editedImage] as! UIImage let size = CGSize(width: 500, height: 500) let scaledImage = image.af_imageScaled(to: size) postImageView.image = scaledImage dismiss(animated: true, completion: nil) } @IBAction func onSubmitButton(_ sender: Any) { let post = PFObject(className: "Posts") post["caption"] = commentField.text! post["author"] = 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!") } } } ``` - Profile Screen - (Read/GET) Query logged in user object //get the username, profile pic, and bio - (Read/GET) Query logged in user's post ```swift let query = PFQuery(className:"Post") query.whereKey("author", equalTo: currentUser) query.order(byDescending: "createdAt") query.findObjectsInBackground { (posts: [PFObject]?, error: Error?) in if let error = error { print(error.localizedDescription) } else if let posts = posts { print("Successfully retrieved \(posts.count) posts.") // TODO: Do something with posts... } } ``` - (Update/PUT) Update user profile image ## Current App ![](https://i.imgur.com/HWc3Hir.gif) ![](https://i.imgur.com/jM9mhzk.gif) ![](https://i.imgur.com/w3NnltF.png)

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully