Socket
Socket
Sign inDemoInstall

koa-react-full-example

Package Overview
Dependencies
204
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    koa-react-full-example

Full example using Koa, React, Passport, Mongoose, Gulp, Mocha


Version published
Weekly downloads
2
decreased by-92.31%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

0.6.1

  • Webpack Dev Server is now proxied by koa

Readme

Source

koa-react-full-example

Join the chat at https://gitter.im/dozoisch/koa-react-full-example

Pair on this

Build Status dependencies devdependencies Tasks

Full example using Koa, React, Passport, Mongoose, Webpack, Mocha, and on Travis

This example contains a MVC pattern that presents a simple counter to the client that increments and decrements a value in the Mongo Database with Mongoose. The UI is all handled with ReactJS. It uses the yield keyword from ES6.

This projects uses bleeding-edge technology. It also uses unstable version of Mongoose (3.9) for the support of yield.

Prerequisite

Installation

  1. Checkout in a directory
  2. npm install
  3. Try it and ensure tests pass with npm run build && npm test

Running the project

To run the project, you need two terminals.

  1. In the first terminal run npm run hot-dev-server
  2. In the second terminal run npm start
  3. Try access localhost:3000 You should normally get the login page.
  4. Create a user using the sign up page "#/signup". It should log you in automatically and you should be redirected to the counter

Build commands

Static Build

npm run build

Running Prod

npm run prod

Run Tests

npm run build && npm test

License

The plugin is under MIT license, please see the LICENSE file provided with the module.

Soon

Updates to come when I get some time:

  • Server side rendering with prod webpack config
  • Redux
  • Code coverage with iSparta istanbul.
  • ES6/Babel server side

Keywords

FAQs

Last updated on 18 Jul 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc