Git Product home page Git Product logo

coway's Introduction

Coway

Coway client side services(UI)

Project File structure

Follow these guidelines for developing custom components

  • Strictly use only functional components and ES6/7 scripting.
  • Path: src/components/
  • Create separate folder a custom component if and only if needed.
  • File format: .component.jsx
  • Each component will have its own .scss file with format .scss
  • Similar methodology for commons too.
  • Have all the API calls and responses fetched from APICalls.commons.js file.

Glimpse of organism model

Organism < compounds < components < molecules < atoms

  • Organism = app
  • Compound = sub-app
  • Components = Collection of components
  • molecules = Collection of molecules build a component
  • atoms = Collection of atoms build a molecule

It is ideal to have components set page wise or container-wise(if there are too many UI components in a view/page) This means we divide our app into multiple sub-apps i.e following organism model to some extent.

For example, Landing page will be a sub-app,

src->components->landingPage --|
                               |_ LandingPageView.component.jsx
                               |_ SignInUp.jsx
                               |_ Authenticator.jsx
                               

Progressive Web App(PWA)

Following two things are very important to convert a Web App into PWA:

  • ServiceWorker - Runs as separate thread in the background to offer functionalities of a native mobile app.
  • PWA Manifest - The web app manifest is a JSON file that tells the browser about your Progressive Web App and how it should behave when installed on the user's desktop or mobile device

Files Associated:

  • ServiceWorker (Tool used: Workbox):
  src --|
        |_ serviceWoker.js
        |_ sw-build.js
        |_ sw.js
                               
  • Manifest:
  public --|
           |_ manifest.json

To Test ServiceWorker : (localhost:5000)

$ npm run build
$ npx serve build

coway's People

Contributors

amangupta25 avatar sharath-golluri97 avatar rmohanty61 avatar riteshghodrao avatar ritesh-inmobi avatar

Watchers

 avatar  avatar  avatar

coway's Issues

CORS issue in authentication

This is a redundant issue. CORS not allowing auth calls as the current dev is local.

  • Allow CORS through the react server. Help needed here.
  • One workaround is to deploy this auth code and then check, as with this we'll be hitting B2C through a prod setup IG, once this authenticator service is successful, we do the rest of the dev without this auth layer and it in release shipping we can test it again and take it to live, it would be just uncommenting some code then.

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.