Graduation Project Communication & Multimedia Design, Amsterdam University of Applied Sciences for Club Ruis
This app is a loyalty app for Club Ruis. With this app you can collect club coins by for instance visiting the club or ordering drinks. With these coins you will be able to get deals like x% discount on x drinks
.
A club visitor has the loyalty app installed on his device and is waiting in line. When he enters the club he can get his personal code scanned. By scanning his code at the door he receives an amount of club coins. While in the club the visitor decides he wants to have a drink. While heading to the register he activate a deal for 2 beer for the price off 1
. At the register he orders 2 bears. Before checkout he gets his personal code scanned. The cash register acknowledges the discount redeemed by the user and adds the discount before checkout. The visitor can now enjoy his beer with his friend who just got a free drink.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Node version ^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0
- Yarn
- Expo app on your device (This is to run the app on a real device)
- Xcode Simulator preferably the latest version (This is to run the app in an iOS simulator)
- Android Studio Simulator (This is to run the app in an android simulator)
Follow these steps to get a copy of the project and get the dependencies installed.
- Clone the repository (Make sure your in your development directory)
$ git clone [email protected]:IanCStewart/ruis-loyalty-app.git
- Change to the new directory
$ cd ruis-loyalty-app
- Install the dependencies
$ yarn install
Follow these steps to get the project running.
- Start the React Native packager
$ yarn start
If all went as expected you should see something like 11:15:51: Starting packager...
in your terminal.
- Open the app in Expo
After Packager started!
appeared in your terminal you should see an QR code with some other instructions. To run the app on the iOS sim press i
on your keyboard. Your terminal should say 11:19:59: Starting iOS...
and a simulator should be started up.
- Use the app in the sim
After the packer is done compiling the following message should be prompted:
11:23:01: Finished building JavaScript bundle in 35ms
11:23:02: Running app on Ian in development mode
The app is now ready to be explored within the simulator.
- Check if the emulator command is registered in your terminal
$ which emulator
If emulator not found
is returned add the following to your ~/.zshrc config
export ANDROID_HOME="$HOME/Library/Android/sdk"
export PATH=$PATH:$ANDROID_HOME/emulator:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
-
Open Android Studio and make sure a SDK is installed. see: https://developer.android.com/studio/intro/update
-
Create an emulator (Pixel_2_XL_API_27 recommended). see: https://developer.android.com/studio/run/managing-avds
-
Start the simulator
$ emulator @Pixel_2_XL_API_27
For more information on starting simulators: https://developer.android.com/studio/run/emulator-commandline
- Start the React Native packager
$ yarn start
If all went as expected you should see something like 11:15:51: Starting packager...
in your terminal.
- Open the app in Expo
After Packager started!
appeared in your terminal you should see an QR code with some other instructions. To run the app on the Android sim press a
on your keyboard. Your terminal should say 11:19:59: Starting Android...
.
- Use the app in the sim
After the packeger is done compiling the following message should be prompted:
11:23:01: Finished building JavaScript bundle in 35ms
11:23:02: Running app on Ian in development mode
- Start the React Native packager
$ yarn start
If all went as expected you should see something like 11:15:51: Starting packager...
in your terminal.
- Open the app in Expo
After Packager started!
appeared in your terminal you should see an QR code with some
other instructions. To run the app on your iOS device send the link below the QR code, this should look somewhat like Your app is now running at URL: exp://10.0.1.19:19000
, too yourself and open this link (OR send the link by email by pressing s
on your keyboard and the filling in your email). The expo app should launch and open the project
- Use the app on your iOS device
After the packager is done compiling the message should be prompted:
11:38:38: Finished building JavaScript bundle in 3374ms
11:38:41: Running app on iPhone in development mode
- Start the React Native packager
$ yarn start
If all went as expected you should see something like 11:15:51: Starting packager...
in your terminal.
- Open the app in Expo
After Packager started!
appeared in your terminal you should see an QR code with some
other instructions. To run the app on your Android device point the expo QR scanner towards the code in your terminal (OR send the link below the QR code, this should look somewhat like Your app is now running at URL: exp://10.0.1.19:19000
, too yourself and open this link; OR send the link by email by pressing s
on your keyboard and the filling in your email). The expo app should open the project.
- Use the app on your Android device
After the packager is done compiling the message should be prompted:
11:38:38: Finished building JavaScript bundle in 3374ms
11:38:41: Running app on Pixel 2 in development mode
- Make sure React Native Debugger is installed
$ brew cask install react-native-debugger
- Start packager with debug command
$ yarn start:debug
- Open app in desired platform
After the packager is done compiling the message should be prompted:
11:38:38: Finished building JavaScript bundle in 3374ms
11:38:41: Running app on iPhone in development mode
- Start remote debugger
Go to the settings screen from expo by either pressing ⌘D
on your keyboard or by shaking
your physical phone. When in the settings screen choose Debug Remote JS
. React Native Debugger should be launched and in your terminal you should see the following.
11:24:04: Starting custom debugger by executing: unset ELECTRON_RUN_AS_NODE && open -g 'rndebugger://set-debugger-loc?port=19001' || "/Users/ian/Sites/ruis-loyalty-app"
11:24:15: You are now debugging remotely; check your browser console for your application logs.
11:24:24: Running app on iPhone in development mode
- Back-end (API & Database)
- Create connection with cash registers
- Social Login using OAuth
- More usability testing
- Iterate on current design
- Finalize Front-end code
- Admin pannel to create app content
- Better naming for ranking
- Better Ruis Branding
This project is licensed under the MIT License