Coder Social home page Coder Social logo

airliquidecodechallenge's Introduction

Air Liquide Code Challenge

This project runs on React Native.

The objective of this repo is to display the correct way to use redux along with a middleware for side-effects.

tl;dr: if you are here to check it, main code is on the store folder

How to run:

Clone this repository and then install all dependencies by running:

yarn && yarn android

If you want to run it on android, type the command:

yarn android

If you are on a macOS machine and want to run it in a iOS simulator, you first need to run:

cd ios && pod install

After completing this, you can:

yarn ios

Tech and libraries

React native

TypeScript

  • The app is build using Typescript, it grants bring static typing for javascript, granting us the ability to use the intelisense for our code editor, facilitates the refactoring of code, saves us debuging time and brings more assertiveness when accessing properties of our variables.
  • Interfaces were created with payload responsed from the API, so the whole application is aware of it's data structure.

Main libs:

  • redux for state management of the application.
  • redux-saga middleware for managing side-effects on redux store.
  • styled-components to simplify separation between code and stylesheets.

Patterns

It is always important to follow a certain pattern when developing. It makes the code more readable and assists new joining programmers to ramp up faster when getting in touch with the code for the first time.

As this repository is made only to display the use of side-effects, I followed the duck pattern, a very common pattern for developers working on redux, suggested by the own creator.

airliquidecodechallenge's People

Contributors

jordanboaz 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.