An open API service indexing awesome lists of open source software.

https://github.com/tomitrescak/meteor-mantra-redux-graphql

Meteor Boilerplate for Mantra + Redux + GraphQL
https://github.com/tomitrescak/meteor-mantra-redux-graphql

Last synced: 5 months ago
JSON representation

Meteor Boilerplate for Mantra + Redux + GraphQL

Awesome Lists containing this project

README

        

# 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](https://github.com/kadirahq/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

### 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](https://github.com/kadirahq/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.
> ```js
> npm install -g [email protected]
> rm -rf node_modules
> npm install
> npm run storybook
> ```