Skip to content

ThiagoGarciaAlves/amnesia-game

 
 

Repository files navigation

Amnesia Game

React Native License

Here is a quick start guide:

git clone git@github.com:KalebPortillo/amnesia-game.git
cd amnesia-game
yarn install
yarn run ios

For further setup instructions please see our Getting Started section.

Contents

Application Blueprint

  • Always up-to-date React Native scaffolding
  • Modular and well-documented structure for application code
  • Redux with Ducks proposal for state management
  • Reselect for compute devided data
  • React Navigation for awesome navigation with 60fps transitions
  • Redux Persist Disk-persisted application state caching for offline support and snappy startup performance
  • Sample app to show how to wire it all together
  • React Native Config Multi-environment configuration (dev, staging, production) for iOS and Android
  • Automagically update project version in both Android and iOS when running npm version command
  • Prettier for consistant code format
  • Custom splash screen ready, just change the image asset

Testing Setup

  • Jest for unit testing application code and providing coverage information.
  • Enzyme and fully mocked React Native for unit testing UI components
  • Utilities for end-to-end integration testing Redux state, including side effects and asynchronous actions

Getting started

You will need node, npm, yarn(preferably), Android Studio, Xcode, React Native CLI, and all these basic stuff setup in your machine

Development workflow

After you have set up the project using above instructions, you can use your favorite IDE or text editor to write code, and run the application from the command line. Turn on React Native hot module reloading in the app developer menu to update your application as you code.

Start the application in iOS simulator
$ yarn ios
Start the application in Android simulator

(If using the stock emulator, the emulator must be running)

$ yarn android
Run unit tests
$ yarn test
Run tests every time code changes
$ yarn test:watch
Generate code coverage report
$ yarn coverage
Update project version
$ yarn version

For more awesome yarn commands, refer to package.json scripts section

Debugging

For standard debugging select Debug JS Remotely from the React Native Development context menu (To open the context menu, press CMD+D in iOS or D+D in Android). This will open a new Chrome tab under http://localhost:8081/debugger-ui and prints all actions to the console.

For advanced debugging under macOS we suggest using the standalone React Native Debugger, which is based on the official debugger of React Native. It includes the React Inspector and Redux DevTools so you can inspect React views and get a detailed history of the Redux state.

You can install it via brew and run it as a standalone app:

$ brew update && brew cask install react-native-debugger

Note: Make sure you close all active chrome debugger tabs and then restart the debugger from the React Native Development context menu.

Contributing

If you find any problems, please open an issue or submit a fix as a pull request.

We welcome new features, but for large changes let's discuss first to make sure the changes can be accepted and integrated smoothly.

License

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 68.2%
  • Objective-C 13.0%
  • Java 6.9%
  • Shell 6.9%
  • Python 5.0%