meteor-mantra-redux-graphql
meteor-mantra-redux-graphql copied to clipboard
Meteor Boilerplate for Mantra + Redux + GraphQL
mantra-sample-blog-app-hot
This is the mantra-sample-blog-app
with hotloading added in + using the Redux store for the local state and GraphQL for queries.
A Sample Blog App Written in Mantra
This is a sample blog app written in Mantra covering core features of it.
Setting Up
- Clone this repo
- Do
npm install
to install dependencies - Make sure you've installed Meteor locally
Running The App
Simply start your app with meteor -p 5005
.
Then you can access the app on http://localhost:5005
Typescript vs Javascript
This repo contains all sources written in Typscript located in the src
directory.
The compiled javascript is in ES 2015 located in the imports
directory.
If you do not wish to use Typescript, simply remove the src
directory.
I know we are going here against Mantra recommendation to keep everything in client / server directory, what you are welcome to change, but for now, keeping everything in imports seems cleaner to me.
Running Tests
In this app, every part of the client side is fully tested using the familiar tools like Mocha, Chai and Sinon.
Run tests with:
npm test
See package.json for more information about testing setup.
Running Storybook
This app is setup for React Storybook. Run following command to start the React Storybook:
npm run storybook
NOTE: If this gives you missing module errors, React Storybook requires npm v3. Here's how to install npm3 and get it setup.
npm install -g [email protected] rm -rf node_modules npm install npm run storybook