GithubHelp home page GithubHelp logo

eiriklv / koa-react-full-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dozoisch/koa-react-full-example

1.0 2.0 0.0 373 KB

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

License: MIT License

JavaScript 97.59% CSS 0.59% HTML 1.81%

koa-react-full-example's Introduction

koa-react-full-example

Build Status dependencies devdependencies Tasks

Full example using Koa, React, Passport, Mongoose, Gulp, 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. npm install -g gulp (might need sudo)
  4. gulp install
  5. Try it and ensure tests passes with npm test

Running the project

  1. Build and start using gulp dev
  2. Try access localhost:3000 You should normally get the login page.
  3. 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

Build

gulp or gulp install

Run Develop

npm start or gulp dev

Run Tests

gulp && npm test

License

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

Soon

Updates to come:

  • Description of some design choices
  • Error handling
  • More in-depth React-Koa example

koa-react-full-example's People

Contributors

claym avatar dozoisch avatar optikfluffel avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.