Giter Site home page Giter Site logo

alexanderwe / meteorreactboilerplate Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 49 KB

Boilerplate for using React in Meteor. Fundamental packages and dependencies added.

JavaScript 98.11% HTML 1.26% CSS 0.63%
meteor react boilerplate react-router-v4 meteor-react-basics

meteorreactboilerplate's Introduction

MeteorReactBoilerplate

Meteor version React version

A simple boilerplate for using React within Meteor. All fundamental packages and dependencies are added in the packages file of .meteor and in the package.json file for npm. You can make your React components reactive with meteor-react-data. For further reading about this please visit the Meteor Guide Also a settings-file for storing constants like API-Keys is available. But keep in mind to not commit your settings.json file into any version control system. For git just add settings.json to your .gitignore file.

React Router is used for routing between components and containers. This is done in a very rudimental way, if you want to read more about routing with React Router visit their website.

Dependencies

"dependencies": {
    "babel-runtime": "^6.23.0",
    "bcrypt": "^1.0.2",
    "meteor-node-stubs": "^0.2.11",
    "react": "^16.0.0",
    "react-dom": "^16.0.0",
    "react-helmet": "^5.2.0",
    "react-router": "^4.2.0",
    "react-router-dom": "^4.2.2"
  }

Meteor packages

[email protected]               # Packages every Meteor app needs to have
[email protected]         # Packages for a great mobile UX
[email protected]                    # The database Meteor supports right now
[email protected]             # Reactive variable for tracker
[email protected]                  # Helpful client-side library
[email protected]                   # Meteor's client-side reactive programming library
static-html                     # Used to get some static html content parsed, especially the meta tags


[email protected]     # CSS minifier run for production mode
[email protected]      # JS minifier run for production mode
[email protected]                 # ECMAScript 5 compatibility for older browsers.
[email protected]                # Enable ECMAScript2015+ syntax in app code

# CSS Preprocessors
fourseven:scss

# All things about users,password and roles
useraccounts:unstyled
[email protected]
alanning:roles

# React
react-meteor-data

# New stuff
[email protected]

#bundle-visualizer             # Uncomment this and use meteor --production to simulate production minification and see how big your bundle will be.                


Naming conventions

I am using */components/*.component.jsx for specifying pure React components and */container/*.container.jsx for specifying container components. You can either adopt this naming scheme or use your own one.

Inspired by

This boilerplate was inspired by the tutorials and base template by Scott Tolinski

How to use ?

Clone repository and install dependencies

git clone https://github.com/alexanderwe/MeteorReactBoilerplate  #Clone repository
cd MeteorReactBoilerplate
meteor yarn install                                         # Install dependencies with yarn
(meteor npm install                                         # If you do not want to use yarn, remove 'yarn.lock')
meteor                                                      # Start meteor
meteor  --settings settings-development.json                # Start meteor with development settings
meteor  --settings settings-production.json                 # Start meteor with production settings

Issues ?

If you have any issues with this boilerplate let me know that in the issues section !

meteorreactboilerplate's People

Contributors

alexanderwe 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.