Skip to content
This repository has been archived by the owner on Aug 31, 2019. It is now read-only.

YasushiKobayashi/react-cms

Repository files navigation

Build Status CircleCI

api repo

https://github.com/YasushiKobayashi/go-api

set up

yarn
cd src && cp config.sample.js config.js
// start webpack dev server
npm start

// start express ssr server(not live reload)
npm run dev

test

npm run lint
npm run test

install node js

brew install nodenv yarn
nodenv install 6.7.0
nodenv rehash
nodenv global 6.7.0
echo 'export PATH="$HOME/.nodenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(nodenv init -)"' >> ~/.bash_profile
source ~/.bash_profile

run e2e test

brew install pyenv
echo 'export PYENV_ROOT="${HOME}/.pyenv"' >> ~/.bash_profile
echo 'export PATH="${PYENV_ROOT}/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(pyenv init -)"' >> ~/.bash_profile

npm run test:selenium

directory

├── __tests__
├── selenium
├── public
├── src
│   ├── index.jsx
│   ├── server.jsx
│   ├── config.js
│   ├── actions
│   ├── api
│   ├── model
│   ├── reducers
│   ├── sagas
│   ├── store
│   ├── types
│   ├── components
│   ├── containers
│   ├── parts
│   ├── ssrCompornents
│   ├── utils