Welcome to the second part of our series on generators and Koa. If you missed it you can read read part 1 here. Before starting with the development process, make sure that you have installed Node.js 0.11.9 or higher.
In this part, we will be creating a dictionary API using Koa.js, and you'll learn about routing, compressing, logging, rate-limiting, and error handling in Koa.js. We will also use Mongo as our datastore and learn briefly about importing data into Mongo and the ease that comes with querying in Koa. Finally, we'll look into debugging Koa apps.
Koa has radical changes built under its hood which leverage the generator goodness of ES6. Apart from the change in the control flow, Koa introduces its own custom objects, such as this
, this.request
, and this.response
, which conveniently act as a syntactic-sugar layer built on top of Node's req and res objects, giving you access to various convenience methods and getters/setters.
Apart from convenience, Koa also cleans up the middleware which, in Express, relied on ugly hacks which often modified core objects. It also provides better stream handling.
A middleware is a pluggable function that adds or removes a particular piece of functionality by doing some work in the request/response objects in Node.js.
A Koa middleware is essentially a generator function that returns one generator function and accepts another. Usually, an application has a series of middleware that are run for each request.
Also, a middleware must yield to the next 'downstream' middleware if it is run by an 'upstream middleware'. We will discuss more about this in the error handling section.
Just one last thing: To add a middleware to your Koa application, we use the koa.use()
method and supply the middleware function as the argument. Example: app.use(koa-logger)
adds koa-logger
to the list of middleware that our application uses.
To start with the dictionary API, we need a working set of definitions. To recreate this real-life scenario, we decided to go with a real dataset. We took the definition dump from Wikipedia and loaded it into Mongo. The set consisted of about 700,000 words as we imported only the English dump. Each record (or document) consists of a word, its type, and its meaning. You can read more about the importing process in the import.txt
file in the repository.
To move along the development process, clone the repository and check your progress by switching to different commits. To clone the repo, use the following command:
$ git clone https://github.com/bhanuc/dictapi.git
We can start by creating a base server Koa:
var koa = require('koa'); var app = koa(); app.use(function *(next){ this.type = 'json'; this.status = 200; this.body = {'Welcome': 'This is a level 2 Hello World Application!!'}; }); if (!module.parent) app.listen(3000); console.log('Hello World is Running on http://localhost:3000/');
In the first line, we import Koa and save an instance in the app variable. Then we add a single middleware in line 5, which is an anonymous generator function that takes the next variable as a parameter. Here, we set the type and status code of the response, which is also automatically determined, but we can also set those manually. Then finally we set the body of the response.
Since we have set the body in our first middleware, this will mark the end of each request cycle and no other middleware will be involved. Lastly, we start the server by calling its listen
method and pass on the port number as a parameter.
We can start the server by running the script via:
$ npm install koa $ node --harmony index.js
You can directly reach this stage by moving to commit 6858ae0
:
$ git checkout 6858ae0
Routing allows us to redirect different requests to different functions on the basis of request type and URL. For example, we might want to respond to /login
differently than signup
. This can be done by adding a middleware, which manually checks the URL of the request received and runs corresponding functions. Or, instead of manually writing that middleware, we can use a community-made middleware, also known as a middleware module.
To add routing capability to our application, we will use a community module named koa-router
.
To use koa-router
, we will modify the existing code to the code shown below:
var koa = require('koa'); var app = koa(); var router = require('koa-router'); var mount = require('koa-mount'); var handler = function *(next){ this.type = 'json'; this.status = 200; this.body = {'Welcome': 'This is a level 2 Hello World Application!!'}; }; var APIv1 = new router(); APIv1.get('/all', handler); app.use(mount('/v1', APIv1.middleware())); if (!module.parent) app.listen(3000); console.log('Hello World is Running on http://localhost:3000/');
Here we have imported two modules, where router
stores koa-router
and mount
stores the koa-mount
module, allowing us to use the router in our Koa application.
On line 6, we have defined our handler
function, which is the same function as before but here we have given it a name. On line 12, we save an instance of the router in APIv1
, and on line 13 we register our handler for all the GET
requests on route /all
.
So all the requests except when a get request is sent to localhost:3000/all
will return "not found". Finally on line 15 , we use mount
middleware, which gives a usable generator function that can be fed to app.use()
.
To directly reach this step or compare your application, execute the following command in the cloned repo:
$ git checkout 8f0d4e8
Before we run our application, now we need to install koa-router
and koa-mount
using npm
. We observe that as the complexity of our application increases, the number of modules/dependencies also increases.
To keep track of all the information regarding the project and make that data available to npm
, we store all the information in package.json
including all the dependencies. You can create package.json manually or by using an interactive command line interface which is opened using the $ npm init
command.
{ "name": "koa-api-dictionary", "version": "0.0.1", "description": "koa-api-dictionary application", "main": "index", "author": { "name": "Bhanu Pratap Chaudhary", "email": "bhanu423@gmail.com" }, "repository": { "type": "git", "url": "https://github.com/bhanuc/dictapi.git" }, "license": "MIT", "engines": { "node": ">= 0.11.13" } }
A very minimal package.json
file looks like the one above.
Once package.json
is present, you can save the dependency using the following command:
$ npm install <package-name> --save
For example: In this case, we will install the modules using the following command to save the dependencies in package.json
.
$ npm install koa-router koa-mount --save
Now you can run the application using $ node --harmony index.js
.
You can read more about package.json
here.
We will start by creating two routes for the API, one for getting a single result in a faster query, and a second to get all the matching words (which is slower for the first time).
To keep things manageable, we will keep all the API functions in a separate folder called api
and a file called api.js
, and import it later in our main index.js
file.
var monk = require('monk'); var wrap = require('co-monk'); var db = monk('localhost/mydb'); var words = wrap(db.get('words')); /** * GET all the results. */ exports.all = function *(){ if(this.request.query.word){ var res = yield words.find({ word : this.request.query.word }); this.body = res; } else { this.response.status = 404; } }; /** * GET a single result. */ exports.single = function *(){ if(this.request.query.word){ var res = yield words.findOne({ word : this.request.query.word }); this.body = res; } else { this.response.status = 404; } };
Here we are using co-monk
, which acts a wrapper around monk
, making it very easy for us to query MongoDB using generators in Koa. Here, we import monk
and co-monk
, and connect to the MongoDB instance on line 3. We call wrap()
on collections, to make them generator-friendly.
Then we add two generator methods named all
and single
as a property of the exports
variable so that they can be imported in other files. In each of the functions, first we check for the query parameter 'word.' If present, we query for the result or else we reply with a 404 error.
We use the yield
keyword to wait for the results as discussed in the first article, which pauses the execution until the result is received. On line 12, we use the find
method, which returns all the matching words, which is stored in res and subsequently sent back. On line 23, we use the findOne
method available on the collection, which returns the first matching result.
var koa = require('koa'); var app = koa(); var router = require('koa-router'); var mount = require('koa-mount'); var api = require('./api/api.js'); var APIv1 = new router(); APIv1.get('/all', api.all); APIv1.get('/single', api.single); app.use(mount('/v1', APIv1.middleware())); if (!module.parent) app.listen(3000); console.log('Dictapi is Running on http://localhost:3000/');
Here we import exported methods from api.js
and we assign handlers to GET
routes /all
/single
and we have a fully functional API and application ready.
To run the application, you just need to install the monk
and co-monk
modules using the command below. Also, ensure you have a running instance of MongoDB in which you have imported the collection present in the git repository using the instructions mentioned in import.txtweird
.
$ npm install monk co-monk --save
Now you can run the application using the following command:
$ node --harmony index.js
You can open the browser and open the following URLs to check the functioning of the application. Just replace 'new' with the word you want to query.
http://localhost:3000/v1/all?word=new
http://localhost:3000/v1/single?word=new
To directly reach this step or compare your application, execute the following command in the cloned repo:
$ git checkout f1076eb
By using cascading middlewares, we can catch errors using the try/catch
mechanism, as each middleware can respond while yielding to downstream as well as upstream. So, if we add a Try and Catch middleware in the beginning of the application, it will catch all the errors encountered by the request in the rest of the middleware as it will be the last middleware during upstreaming. Adding the following code on line 10 or before in index.js
should work.
app.use(function *(next){ try{ yield next; //pass on the execution to downstream middlewares } catch (err) { //executed only when an error occurs & no other middleware responds to the request this.type = 'json'; //optional here this.status = err.status || 500; this.body = { 'error' : 'The application just went bonkers, hopefully NSA has all the logs'}; //delegate the error back to application this.app.emit('error', err, this); } });
Storing logs is an essential part of a modern-day application, as logs are very helpful in debugging and finding out issues in an application. They also store all the activities and thus can be used to find out user activity patterns and interesting other patterns.
Rate-limiting has also become an essential part of modern-day applications, where it is important to stop spammers and bots from wasting your precious server resources and to stop them from scraping your API.
It is fairly easy to add logging and rate-limiting to our Koa application. We will use two community modules: koa-logger
and koa-better-rate-limiting
. We need to add the following code to our application:
var logger = require('koa-logger'); var limit = require('koa-better-ratelimit'); //Add the lines below just under error middleware. app.use(limit({ duration: 1000*60*3 , // 3 min max: 10, blacklist: []})); app.use(logger());
Here we have imported two modules and added them as middleware. The logger will log each request and print in the stdout
of the process which can be easily saved in a file. And limit middleware limits the number of requests a given user can request in a given timeframe (here it is maximum ten requests in three minutes). Also you can add a array of IP addresses which will be blacklisted and their request will not be processed.
Do remember to install the modules before using the code using:
$ npm install koa-logger koa-better-ratelimit --save
One of the ways to ensure faster delivery is to gzip your response, which is fairly simple in Koa. To compress your traffic in Koa, you can use the koa-compress
module.
Here, options can be an empty object or can be configured as per the requirement.
var compress = require('koa-compress'); var opts = { filter: function (content_type) { return /text/i.test(content_type) }, // filter requests to be compressed using regex threshold: 2048, //minimum size to compress flush: require('zlib').Z_SYNC_FLUSH }; } //use the code below to add the middleware to the application app.use(compress(opts));
You can even turn off compression in a request by adding the following code to a middleware:
this.compress = true;
Don't forget to install compress using npm
.
$ npm install compress --save
To directly reach this step or compare your application, execute the following command in the cloned repo:
git checkout 8f5b5a6
Test should be an essential part of all code, and one should target for maximum test coverage. In this article, we will be writing tests for the routes that are accessible from our application. We will be using supertest and Mocha to create our tests.
We will be storing our test in test.js
in the api
folder. In both tests, we first describe our test, giving it a more human readable name. After that, we will pass an anonymous function which describes the correct behavior of the test, and takes a callback which contains the actual test. In each test, we import our application, initiate the server, describe the request type, URL and query, and then set encoding to gzip. Finally we check for the response if it's correct.
var request = require('supertest'); var api = require('../index.js'); describe('GET all', function(){ it('should respond with all the words', function(done){ var app = api; request(app.listen()) .get('/v1/all') .query({ word: 'new' }) .set('Accept-Encoding', 'gzip') .expect('Content-Type', /json/) .expect(200) .end(done); }) }) describe('GET /v1/single', function(){ it('should respond with a single result', function(done){ var app = api; request(app.listen()) .get('/v1/single') .query({ word: 'new' }) .set('Accept-Encoding', 'gzip') .expect(200) .expect('Content-Type', /json/) .end(function(err, res){ if (err) throw err; else { if (!('_id' in res.body)) return "missing id"; if (!('word' in res.body)) throw new Error("missing word"); done(); } }); }) })
To run our test, we will make a Makefile
:
test: @NODE_ENV=test ./node_modules/.bin/mocha \ --require should \ --reporter nyan \ --harmony \ --bail \ api/test.js .PHONY: test
Here, we've configured the reporter (nyan cat) and the testing framework (mocha). Note that the import should add --harmony
to enable ES6 mode. Finally, we also specify the location of all the tests. A Makefile
can be configured for endless testing of your application.
Now to test your app, just use the following command in the main directory of the application.
$ make test
Just remember to install testing modules (mocha, should, supertest) before testing, using the command below:
$ npm install mocha should mocha --save-dev
To run our applications in production, we will use PM2, which is an useful Node process monitor. We should disable the logger app while in production; it can be automated using environment variables.
To install PM2, enter the following command in terminal
$ npm install pm2 -g
And our app can be launched using the following command:
$ pm2 start index.js --node-args="--harmony"
Now, even if our application crashes, it will restart automatically and you can sleep soundly.
Koa is a light and expressive middleware for Node.js that makes the process of writing web applications and APIs more enjoyable.
It allows you to leverage a multitude of community modules to extend the functionality of your application and simplify all the mundane tasks, making web development a fun activity.
Please don't hesitate to leave any comments, questions, or other information in the field below.
The Best Small Business Web Designs by DesignRush
/Create Modern Vue Apps Using Create-Vue and Vite
/Pros and Cons of Using WordPress
/How to Fix the “There Has Been a Critical Error in Your Website” Error in WordPress
/How To Fix The “There Has Been A Critical Error in Your Website” Error in WordPress
/How to Create a Privacy Policy Page in WordPress
/How Long Does It Take to Learn JavaScript?
/The Best Way to Deep Copy an Object in JavaScript
/Adding and Removing Elements From Arrays in JavaScript
/Create a JavaScript AJAX Post Request: With and Without jQuery
/5 Real-Life Uses for the JavaScript reduce() Method
/How to Enable or Disable a Button With JavaScript: jQuery vs. Vanilla
/How to Enable or Disable a Button With JavaScript: jQuery vs Vanilla
/Confirm Yes or No With JavaScript
/How to Change the URL in JavaScript: Redirecting
/15+ Best WordPress Twitter Widgets
/27 Best Tab and Accordion Widget Plugins for WordPress (Free & Premium)
/21 Best Tab and Accordion Widget Plugins for WordPress (Free & Premium)
/30 HTML Best Practices for Beginners
/31 Best WordPress Calendar Plugins and Widgets (With 5 Free Plugins)
/25 Ridiculously Impressive HTML5 Canvas Experiments
/How to Implement Email Verification for New Members
/How to Create a Simple Web-Based Chat Application
/30 Popular WordPress User Interface Elements
/Top 18 Best Practices for Writing Super Readable Code
/Best Affiliate WooCommerce Plugins Compared
/18 Best WordPress Star Rating Plugins
/10+ Best WordPress Twitter Widgets
/20+ Best WordPress Booking and Reservation Plugins
/Working With Tables in React: Part Two
/Best CSS Animations and Effects on CodeCanyon
/30 CSS Best Practices for Beginners
/How to Create a Custom WordPress Plugin From Scratch
/10 Best Responsive HTML5 Sliders for Images and Text… and 3 Free Options
/16 Best Tab and Accordion Widget Plugins for WordPress
/18 Best WordPress Membership Plugins and 5 Free Plugins
/25 Best WooCommerce Plugins for Products, Pricing, Payments and More
/10 Best WordPress Twitter Widgets
1 /12 Best Contact Form PHP Scripts for 2020
/20 Popular WordPress User Interface Elements
/10 Best WordPress Star Rating Plugins
/12 Best CSS Animations on CodeCanyon
/12 Best WordPress Booking and Reservation Plugins
/12 Elegant CSS Pricing Tables for Your Latest Web Project
/24 Best WordPress Form Plugins for 2020
/14 Best PHP Event Calendar and Booking Scripts
/Create a Blog for Each Category or Department in Your WooCommerce Store
/8 Best WordPress Booking and Reservation Plugins
/Best Exit Popups for WordPress Compared
/Best Exit Popups for WordPress Compared
/11 Best Tab & Accordion WordPress Widgets & Plugins
/12 Best Tab & Accordion WordPress Widgets & Plugins
1 /New Course: Practical React Fundamentals
/Preview Our New Course on Angular Material
/Build Your Own CAPTCHA and Contact Form in PHP
/Object-Oriented PHP With Classes and Objects
/Best Practices for ARIA Implementation
/Accessible Apps: Barriers to Access and Getting Started With Accessibility
/Dramatically Speed Up Your React Front-End App Using Lazy Loading
/15 Best Modern JavaScript Admin Templates for React, Angular, and Vue.js
/15 Best Modern JavaScript Admin Templates for React, Angular and Vue.js
/19 Best JavaScript Admin Templates for React, Angular, and Vue.js
/New Course: Build an App With JavaScript and the MEAN Stack
/Hands-on With ARIA: Accessibility Recipes for Web Apps
/10 Best WordPress Facebook Widgets
13 /Hands-on With ARIA: Accessibility for eCommerce
/New eBooks Available for Subscribers
/Hands-on With ARIA: Homepage Elements and Standard Navigation
/Site Accessibility: Getting Started With ARIA
/How Secure Are Your JavaScript Open-Source Dependencies?
/New Course: Secure Your WordPress Site With SSL
/Testing Components in React Using Jest and Enzyme
/Testing Components in React Using Jest: The Basics
/15 Best PHP Event Calendar and Booking Scripts
/Create Interactive Gradient Animations Using Granim.js
/How to Build Complex, Large-Scale Vue.js Apps With Vuex
1 /Examples of Dependency Injection in PHP With Symfony Components
/Set Up Routing in PHP Applications Using the Symfony Routing Component
1 /A Beginner’s Guide to Regular Expressions in JavaScript
/Introduction to Popmotion: Custom Animation Scrubber
/Introduction to Popmotion: Pointers and Physics
/New Course: Connect to a Database With Laravel’s Eloquent ORM
/How to Create a Custom Settings Panel in WooCommerce
/Building the DOM faster: speculative parsing, async, defer and preload
1 /20 Useful PHP Scripts Available on CodeCanyon
3 /How to Find and Fix Poor Page Load Times With Raygun
/Introduction to the Stimulus Framework
/Single-Page React Applications With the React-Router and React-Transition-Group Modules
12 Best Contact Form PHP Scripts
1 /Getting Started With the Mojs Animation Library: The ShapeSwirl and Stagger Modules
/Getting Started With the Mojs Animation Library: The Shape Module
/Getting Started With the Mojs Animation Library: The HTML Module
/Project Management Considerations for Your WordPress Project
/8 Things That Make Jest the Best React Testing Framework
/Creating an Image Editor Using CamanJS: Layers, Blend Modes, and Events
/New Short Course: Code a Front-End App With GraphQL and React
/Creating an Image Editor Using CamanJS: Applying Basic Filters
/Creating an Image Editor Using CamanJS: Creating Custom Filters and Blend Modes
/Modern Web Scraping With BeautifulSoup and Selenium
/Challenge: Create a To-Do List in React
1 /Deploy PHP Web Applications Using Laravel Forge
/Getting Started With the Mojs Animation Library: The Burst Module
/10 Things Men Can Do to Support Women in Tech
/A Gentle Introduction to Higher-Order Components in React: Best Practices
/Challenge: Build a React Component
/A Gentle Introduction to HOC in React: Learn by Example
/A Gentle Introduction to Higher-Order Components in React
/Creating Pretty Popup Messages Using SweetAlert2
/Creating Stylish and Responsive Progress Bars Using ProgressBar.js
/18 Best Contact Form PHP Scripts for 2022
/How to Make a Real-Time Sports Application Using Node.js
/Creating a Blogging App Using Angular & MongoDB: Delete Post
/Set Up an OAuth2 Server Using Passport in Laravel
/Creating a Blogging App Using Angular & MongoDB: Edit Post
/Creating a Blogging App Using Angular & MongoDB: Add Post
/Introduction to Mocking in Python
/Creating a Blogging App Using Angular & MongoDB: Show Post
/Creating a Blogging App Using Angular & MongoDB: Home
/Creating a Blogging App Using Angular & MongoDB: Login
/Creating Your First Angular App: Implement Routing
/Persisted WordPress Admin Notices: Part 4
/Creating Your First Angular App: Components, Part 2
/Persisted WordPress Admin Notices: Part 3
/Creating Your First Angular App: Components, Part 1
/How Laravel Broadcasting Works
/Persisted WordPress Admin Notices: Part 2
/Create Your First Angular App: Storing and Accessing Data
/Persisted WordPress Admin Notices: Part 1
/Error and Performance Monitoring for Web & Mobile Apps Using Raygun
/Using Luxon for Date and Time in JavaScript
7 /How to Create an Audio Oscillator With the Web Audio API
/How to Cache Using Redis in Django Applications
/20 Essential WordPress Utilities to Manage Your Site
/Introduction to API Calls With React and Axios
/Beginner’s Guide to Angular 4: HTTP
/Rapid Web Deployment for Laravel With GitHub, Linode, and RunCloud.io
/Beginners Guide to Angular 4: Routing
/Beginner’s Guide to Angular 4: Services
/Beginner’s Guide to Angular 4: Components
/Creating a Drop-Down Menu for Mobile Pages
/Introduction to Forms in Angular 4: Writing Custom Form Validators
/10 Best WordPress Booking & Reservation Plugins
/Getting Started With Redux: Connecting Redux With React
/Getting Started With Redux: Learn by Example
/Getting Started With Redux: Why Redux?
/Understanding Recursion With JavaScript
/How to Auto Update WordPress Salts
/How to Download Files in Python
/Eloquent Mutators and Accessors in Laravel
1 /10 Best HTML5 Sliders for Images and Text
/Site Authentication in Node.js: User Signup
/Creating a Task Manager App Using Ionic: Part 2
/Creating a Task Manager App Using Ionic: Part 1
/Introduction to Forms in Angular 4: Reactive Forms
/Introduction to Forms in Angular 4: Template-Driven Forms
/24 Essential WordPress Utilities to Manage Your Site
/25 Essential WordPress Utilities to Manage Your Site
/Get Rid of Bugs Quickly Using BugReplay
1 /Manipulating HTML5 Canvas Using Konva: Part 1, Getting Started
/10 Must-See Easy Digital Downloads Extensions for Your WordPress Site
/22 Best WordPress Booking and Reservation Plugins
/Understanding ExpressJS Routing
/15 Best WordPress Star Rating Plugins
/Creating Your First Angular App: Basics
/Inheritance and Extending Objects With JavaScript
/Introduction to the CSS Grid Layout With Examples
1Performant Animations Using KUTE.js: Part 5, Easing Functions and Attributes
Performant Animations Using KUTE.js: Part 4, Animating Text
/Performant Animations Using KUTE.js: Part 3, Animating SVG
/New Course: Code a Quiz App With Vue.js
/Performant Animations Using KUTE.js: Part 2, Animating CSS Properties
Performant Animations Using KUTE.js: Part 1, Getting Started
/10 Best Responsive HTML5 Sliders for Images and Text (Plus 3 Free Options)
/Single-Page Applications With ngRoute and ngAnimate in AngularJS
/Deferring Tasks in Laravel Using Queues
/Site Authentication in Node.js: User Signup and Login
/Working With Tables in React, Part Two
/Working With Tables in React, Part One
/How to Set Up a Scalable, E-Commerce-Ready WordPress Site Using ClusterCS
/New Course on WordPress Conditional Tags
/TypeScript for Beginners, Part 5: Generics
/Building With Vue.js 2 and Firebase
6 /Best Unique Bootstrap JavaScript Plugins
/Essential JavaScript Libraries and Frameworks You Should Know About
/Vue.js Crash Course: Create a Simple Blog Using Vue.js
/Build a React App With a Laravel RESTful Back End: Part 1, Laravel 5.5 API
/API Authentication With Node.js
/Beginner’s Guide to Angular: Routing
/Beginners Guide to Angular: Routing
/Beginner’s Guide to Angular: Services
/Beginner’s Guide to Angular: Components
/How to Create a Custom Authentication Guard in Laravel
/Learn Computer Science With JavaScript: Part 3, Loops
/Build Web Applications Using Node.js
/Learn Computer Science With JavaScript: Part 4, Functions
/Learn Computer Science With JavaScript: Part 2, Conditionals
/Create Interactive Charts Using Plotly.js, Part 5: Pie and Gauge Charts
/Create Interactive Charts Using Plotly.js, Part 4: Bubble and Dot Charts
Create Interactive Charts Using Plotly.js, Part 3: Bar Charts
/Awesome JavaScript Libraries and Frameworks You Should Know About
/Create Interactive Charts Using Plotly.js, Part 2: Line Charts
/Bulk Import a CSV File Into MongoDB Using Mongoose With Node.js
/Build a To-Do API With Node, Express, and MongoDB
/Getting Started With End-to-End Testing in Angular Using Protractor
/TypeScript for Beginners, Part 4: Classes
/Object-Oriented Programming With JavaScript
/10 Best Affiliate WooCommerce Plugins Compared
/Stateful vs. Stateless Functional Components in React
/Make Your JavaScript Code Robust With Flow
/Build a To-Do API With Node and Restify
/Testing Components in Angular Using Jasmine: Part 2, Services
/Testing Components in Angular Using Jasmine: Part 1
/Creating a Blogging App Using React, Part 6: Tags
/React Crash Course for Beginners, Part 3
/React Crash Course for Beginners, Part 2
/React Crash Course for Beginners, Part 1
/Set Up a React Environment, Part 4
1 /Set Up a React Environment, Part 3
/New Course: Get Started With Phoenix
/Set Up a React Environment, Part 2
/Set Up a React Environment, Part 1
/Command Line Basics and Useful Tricks With the Terminal
/How to Create a Real-Time Feed Using Phoenix and React
/Build a React App With a Laravel Back End: Part 2, React
/Build a React App With a Laravel RESTful Back End: Part 1, Laravel 9 API
/Creating a Blogging App Using React, Part 5: Profile Page
/Pagination in CodeIgniter: The Complete Guide
/JavaScript-Based Animations Using Anime.js, Part 4: Callbacks, Easings, and SVG
/JavaScript-Based Animations Using Anime.js, Part 3: Values, Timeline, and Playback
/Learn to Code With JavaScript: Part 1, The Basics
/10 Elegant CSS Pricing Tables for Your Latest Web Project
/Getting Started With the Flux Architecture in React
/Getting Started With Matter.js: The Composites and Composite Modules
Getting Started With Matter.js: The Engine and World Modules
/10 More Popular HTML5 Projects for You to Use and Study
/Understand the Basics of Laravel Middleware
/Iterating Fast With Django & Heroku
/Creating a Blogging App Using React, Part 4: Update & Delete Posts
/Creating a jQuery Plugin for Long Shadow Design
/How to Register & Use Laravel Service Providers
2 /Unit Testing in React: Shallow vs. Static Testing
/Creating a Blogging App Using React, Part 3: Add & Display Post
/Creating a Blogging App Using React, Part 2: User Sign-Up
20 /Creating a Blogging App Using React, Part 1: User Sign-In
/Creating a Grocery List Manager Using Angular, Part 2: Managing Items
/9 Elegant CSS Pricing Tables for Your Latest Web Project
/Dynamic Page Templates in WordPress, Part 3
/Angular vs. React: 7 Key Features Compared
/Creating a Grocery List Manager Using Angular, Part 1: Add & Display Items
New eBooks Available for Subscribers in June 2017
/Create Interactive Charts Using Plotly.js, Part 1: Getting Started
/The 5 Best IDEs for WordPress Development (And Why)
/33 Popular WordPress User Interface Elements
/New Course: How to Hack Your Own App
/How to Install Yii on Windows or a Mac
/What Is a JavaScript Operator?
/How to Register and Use Laravel Service Providers
/
waly Good blog post. I absolutely love this…