Features
- FB login, logout
- Browse multiple pages
- Create new post(published/unpublished)
- Browse posts in each pages
Components
Application
Development Environment
- Content pipeline
- Test
Design
UI Components
This is my first react.js application. I tried to understand basic ideas of react.js state management.
It manages login, logout states by traditional FSM style. There are following states.
It shows FB login button with message.
It is the root component of manager.
- switch page
- show new posts after sending
It expands and collapses post content.
- send a new post
- show effects to help users
It shows spin with message.
It provides 2 menus.
- page list
- setting menu(logout)
Automated Tests
There are 2 types of tests in tests/
directory.
- unit test: test for utility functions using mocha and sinon
- integration test: test for components using mocha, enzyme and sinon
- make sure login, logout flow
Usage
- install node v5.11.1
- git clone [this repo]
- npm install -d
- npm run build
- npm run prod
- open http://localtest.me:8000
and test
- npm run test:serv
- open http://localtest.me:8001