GithubHelp home page GithubHelp logo

boilerplate-react-reflux's Introduction

Brandon Phillips

Welcome! I'm Brandon. I've been writing (mostly web) code for about a decade and I currently work primarily on full-stack web app development @ Vivian Health.

We're hiring!

boilerplate-react-reflux's People

Contributors

bericp1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

nolski

boilerplate-react-reflux's Issues

Add JSnoX?

Should try out in project and see how well it works and how easy it is to use. I would feel more comfortable without XML in the middle of my JS.

Break `sever.js` into `index.js` or something else

index.js will export a function that takes two arguments, the express app first and a done callback second. This callback must be called to finish starting the server.

This function will be called after the database has connected.

Naming wise, perhaps server.js can be renamed to index.js since it is the entry point for the entire web app and then this new file can be called server.js.

The benefit to splitting up server.js is that code that shouldn't be changed isn't mixed with code that should be changed or built on top of. It's much nicer and cleaner to have the custom routes and whatnot setup in a seperate file from where the server is pre-configured, database connection is fired up, etc.

Split store methods related to API into lib module

There are currently some methods I'm using repeatedly related to retrieving data from an API and that I can see using frequently in the future. They should be pulled into an external module in public/src/lib so that I can do something like the following:

var createAPIStore = require('create-api-store'); // `public/src/lib` has been added to the browserify search paths
var actions = require('./actions');
module.exports = createAPIStore('/api/items', {
  init: function(){
    this.listenTo(actions.reloadItems, this.reload);
    this.listenTo(actions.deleteItem, this.delete);
    this.listenTo(actions.addItem, this.add);
  }
});

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.