Mobile client for the line queue application 🏪📱
In order to start the project, simply clone the repository, install the dependencies and initialize the react-native
environment emulator
git clone https://github.com/shakedlokits/LineQueue.git && cd lineQueueClient
yarn
react-native run-<android|ios>
For this project to run you must have the react-native
installed and configured, for more information see ReactNative - Getting Started
In order to run the tests, simply run
yarn test
Note: Our tests make use of Jest
Each component is joined with a \*.test.js
file which at least passes a smoke test on it's render function and additionally verifies custom functionality it performs(component life-cycle functions and methods)
For example, App.js holds the app entry point(surprisingly😏)
.
├── App.js
└── App.test.js
Thus App.test.js will hold a test suite for the entire file and sub-suite for the entry point
import 'react-native'
import React from 'react';
import renderer from 'react-test-renderer';
import App from './App';
it('renders correctly', () => {
const app = renderer.create(
<App />
);
});
In order to build the project for android/ios see Generating Signed APK