Skip to content
zprobsPublic

About

A react native app for university orientations.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

506 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend

Prerequisites

Node, Watchman, React-Native CLI, Xcode

See https://reactnative.dev/docs/environment-setup

Getting Started

npx react-native run-ios

or if using Android

npx react-native run-android

Overview

The frontend is built using react native while the backend and is Hasura

GraphQL is the primary API, managed on the client side with Apollo

Objectives

The primary objective is to create a pleasant and intuitive user experience. Other priorities include:

  1. Consistent experience across time and between users

  2. Minimize bugs and runtime errors

  3. Small package size. Do not install a library unless it is necessary and if possible pick the smallest available option

  4. Ensuring the app is compatible with most phones in use today

Code Quality

all components and large functions should be annotated with JSDocs. For example:

/**
 * Represents a book.
 * @constructor
 * @param {string} title - The title of the book.
 * @param {string} author - The author of the book.
 */
function Book(title, author) {
}

Do not be afraid to use inline comments to further describe the more complex parts of your code.

We have taken the approach of using functional components and hooks in this project.

Prettier is our code formatter of choice. Reference the .prettierrc.js file in home directory for details. In general please try to keep functions and components as short and simple as possible.

Tips and Tricks

  • If you see a server error regarding your JWT token simply refresh the app
  • If someone adds a dependency to package.json make sure you run npm install and rebuild the app (may also need to run npx pod-install)

Thank you for your help!

About

A react native app for university orientations.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages