Coder Social home page Coder Social logo

ffx-meteor-react-boilerplate's Introduction

Meteor 1.4 + React Boilerplate

NOTE

This project is no longer maintained, and will no longer be updated.

Purpose

The goal of this boilerplate is twofold:

  1. To provide a good starting point as a scaffold for new Meteor/React projects. This boilerplate will continue to evolve as Meteor and React continue to change and mature.
  2. To also serve as a learning resource by offering an example project.

Installation

Clone this repository, then run:

$ meteor npm install

This will install NPM packages and update the Meteor packages used in the boilerplate.

Once you're ready to get started with your own project, make sure you're in the master branch and run:

$ meteor npm run scaffold

which will remove the .git folder and this README.md, give you a proper working package.json file, and finally set up a starting folder structure.

Exploring the Example Project

The example project shows all the basics of React, Redux and Redux thunks working together with Meteor. It's a separate branch of the project, so just switch to the example branch to see it:

$ git checkout example

This must be done before running meteor npm run scaffold, since that script will destroy the .git folder. Explanations can be found in the comments of the code, so check there. Your starting point should be /client/routes.js. From that point, comments will guide you through the rest of the application. Use git checkout -f master to get out of the example.

Ideas That Graduated

features folder

I've been using this structure for awhile now, where there's a folder called features which contains large parts of a project. For example:

  • features/Billing
  • features/AnimatedCharts

These are typically self-contained groups of components, containers, and methods that are not used anywhere else. I've found that this structure makes it much easier for me to track down problems because I know exactly where to look.

Future Ideas/Plans

  • Come up with a totally working and killer test solution using Mocha and Enzyme
  • Explore CSS Modules.

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.