Code Monkey home page Code Monkey logo

mobile's Introduction

Glific mobile

Getting Started

Prerequisites

Setup

The following setup helps you to run the application on an android machine. Read the documentation of react-native to know about running it on iOS devices.

  1. Clone the repository
git clone [email protected]:glific/mobile.git

You can also use https to clone the repository. To know more read this documentation.

  1. Now change the directory by navigating into the cloned repository. Use the following command, in case of linux.
cd mobile
  1. Create an environment file in the project's home directory with the filename .env, copy the contents from .env.example and update the key-value pairs based on the current environment the application is running in.

  2. Install the dependencies using yarn.

yarn install
  1. Start the metro server.
yarn start

Note that you need to connect either an android device or an emulator with your PC to run the application.

Testing (Android phone)

  • Download Expo Go app from playstore
  • Scan the QR from your CLI

Developer Guidelines

Naming Convention for testID and class

  • For testID and class attributes used in your code, follow the camelCase naming convention.
  • Use lowercase for the first letter of the attribute name and capitalize the first letter of subsequent words within the name.

Example:

// Correct:
<View testID="myElement" className="myComponent" />

// Incorrect:
<View testID="my_element" className="my_component" />
<View testID="my element" className="my-component" />

Following a consistent naming convention helps maintain code readability and consistency across the project.

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.