Git Product home page Git Product logo

vinhnguyen1211 / eventbox-mobile Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 8.84 MB

Mobile application for EventBox help event organizers quickly access customer’s booking information and scan attendee's tickets by means of device camera

Home Page: https://www.eventvlu.tk/

License: MIT License

JavaScript 86.02% Python 2.08% Java 2.12% Objective-C 3.61% HTML 6.17%
react-native react-navigation graphql mobx

eventbox-mobile's Introduction

PRs Welcome License: MIT Code Style: airbnb

eventbox

eventbox is a small sample app written in react-native, which uses EventBox's GraphQL API as a backend and performs some basic queries and mutations using apollo-client.

Tech Stack

  • ⚛️ react-native
  • 🚀 apollo-client
  • 💅 styled-components
  • ✅ jest

Key Features

  • Support for building native code
  • Styling using styled-components
  • In-app navigation/routing handled via react-navigation
    • creating a stack navigator
    • navigation between screens, passing parameters to routes
    • configuring the header bar
  • Remote data managed using apollo-client
    • queries: get first 10 repositiories by language
    • mutations: star a repository
  • Local data also managed by apollo-client using apollo-link-state
    • store user language selection in Apollo cache
  • Offline support using apollo-cache-persist
    • language selection is persisted
    • repositories list can be viewed while offline
  • Unit tests with jest

Environment

This app was developed following the steps in the react-native docs - "Building projects with native code". Env setup:

Environment:
  Node: 8.12.0
  Yarn: 1.12.3
  npm: 6.4.1
  Watchman: 4.9.0
  Xcode: 9.2/9C40b - /usr/bin/xcodebuild
  Android Studio: 3.2 AI-181.5540.7.32.5056338

Getting Started

To communicate with the GraphQL server, follow the steps in "Creating a GraphQL Eventbox Server. After creating a server, follow these steps to start the app:

$ git clone https://github.com/legend1250/eventbox-mobile.git
$ cd eventbox && touch .env
$ echo "SERVER_URI_IOS=https://192.168.1.246:8000/graphql" > .env
$ echo "SERVER_URI_ANDROID=https://192.168.1.246:8000/graphql" > .env
$ yarn install
$ yarn ios OR yarn android

Available Scripts

  • yarn ios - start the app in the iOS simulator
  • yarn android - start the app in the Android emulator
  • yarn lint - runs eslint checks + fixes
  • yarn test - runs available unit tests

Screenshots

Screen 1 Screen 2 Screen 3 Screen 4 Screen 5

eventbox-mobile's People

Contributors

vinhnguyen1211 avatar 6thpath avatar

Stargazers

Niringiye avatar

Watchers

 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.