Skip to content

Files

Latest commit

Lei JingLei Jing
and
Dec 7, 2016
853d74c · Dec 7, 2016

History

History

mantra-sample-blog-app

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 7, 2016
Aug 5, 2016
Aug 5, 2016
Aug 10, 2016
Aug 5, 2016
Aug 5, 2016
Aug 6, 2016
Aug 5, 2016
Aug 5, 2016
Aug 5, 2016
Aug 5, 2016
Aug 5, 2016
Aug 5, 2016
Aug 5, 2016
Aug 5, 2016
Aug 5, 2016
Aug 5, 2016

README.md

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
  • meteor npm i 记得使用 meteor 的npm,不然很有可能和你本地的 npm 版本不同,导致安装的包不能用
  • 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

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 npm@3.8.5
rm -rf node_modules
npm install
npm run storybook