Rails, React and me – codeburst

  • It uses rails to include only JS and Webpack compiled files which was perfect match for the use case.Figuring solutions is always easy, The difficult part is to figure out the problemReact_on_rails has given the instructions to setup existing rails project so I started with them but ran into many…
  • In this particular case, figuring out the problem became worse as the errors were misleading.The Aha Moment: Devil was in the detailsFinally to figure out the problem I created a sample project from scratch using react_on_rails new project setup instructions and started comparing the generated code with my existing project.
  • This particular information turned out to be crucial to get out of the problem I was facing which I was not aware of at that time.SolutionTo solve this issue just change your API controller to base controller.
  • Though I would suggest to convert your entire rails-5 api only app to normal rails app.
  • Once you have resolved everything run$bundle installThis will convert your rails-5 API only app to rails app which can easily be integrated with react_on_rails.

Integration of react and rails using react_on_rails gem in an existing rails-5 api only project
Continue reading “Rails, React and me – codeburst”

Need help with a #WordPress, #Reactjs, or #Laravel project? I’ve got availability starting this month.

  • AxelumTech is a custom web software development firm specializing in web-based applications and services.
  • When you work with AxelumTech, you get a partner with the experience your business needs.
  • AxelumTech takes the time to understand the challenges your business faces and builds its strategy around that understanding.
  • Software built by AxelumTech is crafted to meet rigorous standards of security, performance, and usability.
  • Once your solution has made it to market, AxelumTech wants to be there with you every step of the way.

You don’t need another code slinger. You need somebody who takes the time to understand the challenges your business faces. You need solutions tailored to your business’ needs. You need AxelumTech.
Continue reading “Need help with a #WordPress, #Reactjs, or #Laravel project? I’ve got availability starting this month.”

webpack optimization — A Case Study – WalmartLabs – Medium

  • However, after going through webpack’s docs and code, there didn’t seem to be an easy way to disable that with a single switch.
  • I opened an issue here and after some discussion with webpack’s Tobias Koppers, we settled on allowing webpack’s node option to accept a false config.With NodeSourcePlugin disabled, our code that depend on it all failed and I was able to pinpoint among our hundreds of components, which one to look into.I found out that a few components that have server side only behavior implemented it through the runtime flag provided by exenv, like this:import { canUseDOM } from “exenv”function foo() { if (!
  • canUseDOM) { const crypto = require(“crypto”) // do something with crypto }}The idea is simple, if code is not executing on the browser, then do something on the server side only using the crypto module.
  • Unfortunately, webpack only does static analysis to find out what code needs to be bundled.
  • That means NodeJS crypto is included even though it’s only needed for server side.

Since we open sourced part of the Electrode platform from @WalmartLabs, we’ve had a lot of contributions to our NodeJS and ReactJS archetype modules, including bug fixes, new features, and updating…
Continue reading “webpack optimization — A Case Study – WalmartLabs – Medium”

React: Load Global JavaScript Library with Webpack – Xiao Ling – Medium

React: Load Global JavaScript Library with Webpack  #react #javascript #webpack #reactjs

  • React: Load Global JavaScript Library with WebpackWhen using React and Dynamic Web TWAIN to create a web document scanning app, I was confused about how to load dynamsoft.webtwain.min.js, a global JavaScript library like jQuery, into my project.
  • In this article, I will share not only the solutions but also the issues I met.Three Ways to Import Global JavaScript Libraries into React ProjectComparing to Angular, loading global JavaScript library is more tricky in React.Insert JS link into HTML script elementWebpack is just a module bundler that packs all modules with dependencies into one bundle, which is still a JavaScript file.
  • According to the React component lifecycle, we can write the code in method {var script = = approach is not suitable for loading a local JavaScript library file.Manually export moduleTo load a module in JavaScript, we can use require().
  • The reason is dynamsoft.webtwain.min.js is a global JavaScript library, not a module.
  • Only exported modules are accessible.To make the code work, we can add ‘module.exports = Dynamsoft’ to the bottom of and then rebuild the React project.The variable ‘Dynamsoft’ makes sense now.Configure webpack.config.jsThe above approach which changes the original JavaScript library is apparently not good.

When using React and Dynamic Web TWAIN to create a web document scanning app, I was confused about how to load dynamsoft.webtwain.min.js, a global JavaScript library like jQuery, into my project. I…
Continue reading “React: Load Global JavaScript Library with Webpack – Xiao Ling – Medium”

Image Caching in React Native

Image caching in React Native:

  • Image Caching in React Native
    Written by Dylan Vann08 May 2017

    Image loading is an important job of many Native applications for iOS and Android.

  • Image

    When writing apps with React Native you have access to the built-in Image component.

  • Image usage:

    Image source={{ uri: }} /

    React Native’s Image component handles image caching like browsers for the most part.

  • FastImage

    To solve these issues, I developed a new image component for React Native.

  • FastImage is a performant replacement for React Native’s Image component
    that more aggressively caches images.

Image loading is an important job of many Native applications for iOS and Android.
We want to load images as quickly as possible, and to load them only once.
Continue reading “Image Caching in React Native”

Introduction · Front-end Developer Handbook 2017

Front-End Developer Handbook 2017.

Courtesy of @codylindley #JavaScript #ReactJS

  • Part one broadly describes the practice of front-end engineering.
  • It broadly outlines and discusses the practice of front-end engineering: how to learn it and what tools are used when practicing it in 2017.
  • Part two identifies self-directed and direct resources for learning to become a front-end developer.
  • The book should not be considered a comprehensive outline of all resources available to a front-end developer.
  • It is specifically written with the intention of being a professional resource for potential and currently practicing front-end developers to equip themselves with learning materials and development tools.

This is a guide that anyone could use to learn about the practice of front-end development. It broadly outlines and discusses the practice of front-end engineering: how to learn it and what tools are used when practicing it in 2017.
Continue reading “Introduction · Front-end Developer Handbook 2017”

Rail fleet management Front-end developer

  • Experience with modern JS frameworks (ReactJS is a plus)
  • In depth experience with web technologies and web based software (HTML5, CSS3 and JavaScript
  • You will be trusted to bring innovative ideas and solutions to our clients and help them achieve their value creation goals.
  • If you recognise yourself come join Railnova’s passionate team and help us conquer tens of thousands of trains to change the future of Railway.
  • We design our own hardware and software to connect to train fleets and monitor all business critical parameters.

At Railnova we are changing the way train fleets are managed. As a Front-end developer you will build and maintain the Railnova software platform.
Continue reading “Rail fleet management Front-end developer”