Giter Club home page Giter Club logo

daug-mobile's Introduction

Daug mobile app

This repo is the mobile app for Daug. It was built as part of the MobileSpace Season 2 course by Monte Thakkar.

What's Daug?

Daug is a social network for pets.

  • Your pets can sign up or login using their paws.
  • They can upload selfies or post their thoughts for other pets to see.
  • They can also look at other pets posts and either paw (like) or scratch (dislike) it.

Getting started

git clone [email protected]:mobilespace/daug-mobile.git

exp start

exp ios

Designs

Intro, Login & Sign Up screens are based on Robinhood App.

Profile screen is based on Instagram.

Social Feed screen is based on Facebook.

Other design ideas

Assignment #1

Objectives

  • Learn how to build & organize screens in RN
  • Learn advanced RN styling and use LinearGradient, Image, Icons & Custom Fonts
  • Learn how to use mock data for prototyping UI screens
  • Learn how to use NPM libaries such as React Native Elements, Expo & React Native Vector Icons

TODO

  • Design & build an Intro Screen
  • Design & build a Signup Screen
    • Bonus: Add buttons to sign up with Facebook & Twitter
  • Design & build a Login Screen
    • Bonus: Add buttons to login with Facebook & Twitter
  • Design & build a Profile Screen
    • Bonus: Add the Logout button
  • Design & build a Social Feed Screen with Mock Data
  • Attach screenshots/gif of screens to README.MD

Screenshots

Assignment #2

Objectives

  • Learn how to build navigation for Daug app using React Navigation
  • Learn mobile design patterns for navigation & screen layouts
  • Learn how to quickly build RN screens and hook them up using navigation

TODO

  • Understand the 3 main navigation patterns for mobile apps:
  • Setup a IntroStack (using StackNavigator) for the Intro Screen (root), Login Screen (push) & Sign Up Screen (push)
  • Setup a HomeTabs (using TabNavigator) for the Social Feed Screen (default) and Profile Screen
  • Setup a RootNavigator (using StackNavigator) with the IntroStack & HomeTabs with mode: "modal"
  • Design & build an Edit Profile Screen
  • Setup a ProfileStack (using StackNavigator) for the Profile Screen (root), Post Details Screen (push) & Edit Profile Screen (modal) with mode: "modal" and custom RNE header component
  • Design & build a Post Details Screen
  • Design & build a Create Post Screen
  • Setup a SocialStack (using StackNavigator) for the Social Feed Screen (root), Post Details Screen (push) & Create Post Screen (modal) with mode: "modal" and custom RNE header component
  • Bonus: Display Posts on ProfileScreen
  • Bonus: Setup a HomeNavigator(using DrawerNavigator) with the HomeTabs (as root) and update RootNavigator to use HomeNavigator instead of HomeTabs
  • Add working gif of app to README.MD

Demo

assignment_2

Assignment #3

Objectives

  • Learn how to make backend API calls and User Authentication
  • Learn how to setup an Authnetication UI flow using AsyncStorage
  • Serve as an React Native app that you can showcase on your porfolio

API

**Namespace:** `/auth`

// User Authentication endpoints
router.post('auth/signup'); // CREATE
router.post('auth/login'); // VALIDATE / READ


**Namespace:** `/api`

// All data endpoints
router.get('api/users/all'); // READ
router.get('api/posts/all'); // READ

// Social Feed endpoints
router.get('api/feed'); // READ

// User data endpoints
router.get('api/users/:userId'); // READ
router.put('api/users/:userId'); // UPDATE

// Posts endpoints
router.get('api/posts/:postId'); // READ
router.post('api/users/:userId/posts'); // CREATE
router.put('api/users/:userId/posts/:postId'); // UPDATE
router.delete('api/users/:userId/posts/:postId'); // DELETE

// Follower endpoints
router.get('api/users/:userId/followers'); // READ
router.get('api/users/:userId/following'); // READ
router.post('api/users/:userId/follow/:followingId'); // CREATE
router.post('api/users/:userId/unfollow/:followingId'); // DELETE

// Like endpoints
router.get('api/posts/:postId/likes'); // READ
router.post('api/posts/:postId/like/:userId'); // CREATE
router.post('api/posts/:postId/unlike/:userId'); // DELETE

// Comment endpoints
router.get('api/posts/:postId/comments'); // READ
router.post('api/posts/:postId/comment/:userId'); // CREATE
router.post('api/posts/:postId/uncomment/:userId'); // DELETE

TODO

  • Intro Screen - Make simple GET request to /api to check server status
  • Signup Screen - Make POST request to /auth/signup to create a new user
    • Bonus: Add UI validation to Signup Screen - name (not null), email (format) & password (min. 8 characters)
  • Login Screen - Make POST request to /auth/login to validate and login an existing user
    • Bonus: Add UI validation to Login Screen - email (format) & password (min. 8 characters)
  • Social Feed Screen - Make GET request to /api/feed/ to get all posts for social feed
    • Bonus: Use ActivityIndicator to show placeholder loading when fetching feed data
    • Bonus: Use DeviceEventEmitter to trigger fetching posts when the new_post_created event is emitted
    • Bonus: Use timeSince() utility function to show relative times for post creation
  • Create Post Screen - Make POST request to /api/users/:userId/posts to create a new post by the user
    • Use ImagePicker (expo) to allow the user to add a picture to the post - Snack demo here
      • Bonus: Use DeviceEventEmitter to emit new_post_created event once post is created
  • Profile Screen - Make GET request to /api/users/:userId to get all the profile data
    • Bonus: Use ActivityIndicator to show placeholder loading when fetching profile data
    • Bonus: Use DeviceEventEmitter to trigger fetching profile data when the user_profile_updated event is emitted
  • Edit Profile Screen - Make PUT request to /api/users/:userId to update a user's profile information
    • Bonus: Use DeviceEventEmitter to emit user_profile_updated event once user data is updated
  • Setup Authentication flow for app using AsyncStorage. Once the user has logged in then take them to home page each time they open the app again

Wrap up

Objectives

  • Add UI polish, tie up loose end and add remaining functionality
  • Update Readme with app details and publish Expo app for demo
  • Serve as an React Native app that you can showcase on your porfolio

TODO

  • Add Like, Comment and Follow API functionality
  • Clean up and format README.MD to showcase app - follow this template
  • Bonus: Add phone number UI to Edit Profile screen
  • Bonus: Add Camera functionality to Create Post screen
  • Bonus: Use Redux to share state between tab bar & screens
  • Add working gif of app to README.MD

Demo

Submission

Once you have completed each assignment above, please create a new issue on this repo with the title as your name and add the link to your repo in the description. Additionally please publish your Expo app and add the link as a comment on your submission issue. One of the TA's will review your code and add your name to the list of completed submissions below if all looks good.

Problems?

In case you run into any problems or issues, please post it on #questions channel on the MobileSpace Slack.

Finally

For any other questions about this repo or MobileSpace in general please reach out to @monte9 on Github.

daug-mobile's People

Contributors

monte9 avatar mobilespace avatar

Watchers

Bhavesh Chowdhury 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.