Open in app

Sign In

Write

Sign In

Gaurav Tiwari
Gaurav Tiwari

206 Followers

Home

About

Published in Statuscode

·Feb 19, 2017

Introducing Webpacker

Official Rails gem for bundling JavaScript assets with Webpack — With the ever-changing JavaScript world, one important thing that has been lacking in Rails was support for proper bundling system for JavaScript assets, but from Rails 5.1 this is going to change with the introduction of new Webpacker gem. Rails 5.1 ships with webpack and yarn via the –webpack option…

JavaScript

5 min read

Introducing Webpacker
Introducing Webpacker
JavaScript

5 min read


Oct 2, 2016

Declaring, composing and executing GraphQL queries with ruby

A few weeks ago github released it’s GraphQL powered API and with that a ruby library for composing and executing GraphQL queries using ruby. The example available on github repo is a rails example and so the writer thought for learning internals it would be good idea to experiment it…

GraphQL

3 min read

GraphQL

3 min read


Jul 15, 2016

Simple authentication in Rails with Bcrypt

Almost all user-driven web applications requires a user authentication feature for, Logging in and out, Registration, Resetting password, and whatnot. Fortunately, to achieve this in Rails we have so many gems available, but they are all very, full-featured. What if we just need the login feature, without registration etc?. Now…

Ruby On Rails

3 min read

Ruby On Rails

3 min read


Jul 2, 2016

Bitsize Webpack Series 03

Webpack config file splitting — One problem with Webpack is that the config file quickly gets huge and complicated in no time for a real app. So, lets split our previous config file into separate smaller modules: Package.json Webpack.config.js That’s all in our main webpack config file, and now lets create a new webpack.config/ folder inside our project folder and place relevant configs in separate files. For ex: entry, output, plugins and so on…

JavaScript

1 min read

JavaScript

1 min read


Jul 2, 2016

Bitsize Webpack Series 02

Sourcemaps, minification, Remove code duplication — Lets update the Webpack config from our old setup: That’s all ! Now, lets run the setup: npm install npm run start open main.html in your browser Checkout the output bundle.js in the browser or editor. Voila! now you have the minified code and sourcemaps. P.S. The code is available on github

JavaScript

1 min read

JavaScript

1 min read


Jul 2, 2016

Bitsize Webpack Series 01

Most basic setup — Introduction: A series of mini posts that explores Webpack — famous JS module loader and bundler, from scratch. The idea is to start from very basic Webpack setup to more advanced and complex setup. Pre-requisites: Javascript, NodeJS and some Javascript libraries In a directory, create following files: Package.json Webpack.config.js Main.html Main.js That’s all ! Now, lets run the setup:

JavaScript

1 min read

JavaScript

1 min read


Jun 11, 2016

Zero to GraphQL — Building GraphQL servers in popular web frameworks

As most of you may have heard about GraphQL, it’s a new query language layer for fetching application data regardless of data model or application layer. It’s platform agnostic and conforms to an uniform API through something called ‘GraphQL spec’, which makes it pretty transparent and easy to learn. After…

GraphQL

2 min read

GraphQL

2 min read


May 1, 2016

GraphQL and Relay on Rails — Wrap Up

This is a last wrap up post for this Relay on Rails series. If you haven’t checked it out, so far we have covered basics of relay and GraphQL, building GraphQL server on top of Rails, data fetching for react components, dynamic client-side react component rendering and Mutations with Relay. The updated blog repo and demo with latest Relay, React and Ruby GraphQL gems is available here: https://github.com/gauravtiwari/relay-rails-blog and here: https://relay-rails-blog.herokuapp.com/

React

1 min read

React

1 min read


Feb 21, 2016

GraphQL and Relay on Rails — Moving to Webpack

In this short post, we are going to look at Webpack and how we can integrate it with our current blog application for React and Relay powered frontend development on Rails. So far, we have used browserify with Rails asset pipeline to manage frontend dependencies, however after working with this…

Webpack

2 min read

Webpack

2 min read


Jan 18, 2016

GraphQL and Relay on Rails — Authentication and Mutations

So far, we have covered basics of relay and GraphQL, building GraphQL server on top of Rails, data fetching for react components and dynamic client-side react component rendering with Relay. In this post, we are going to cover a important requirement of any web application i.e. user authentication. …

Relay

4 min read

Relay

4 min read

Gaurav Tiwari

Gaurav Tiwari

206 Followers

Full Stack Developer

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech