- Install mongodb click here
- Heroku account click here if you want to deploy with heroku
- Amazon account click here if you want to deploy with amazon
- git clone git@github.com:hunghkit/reactjs-begin.git
- yarn install||- npm install
- Start mongodb: mongod
- Add ENV: cp .env.example .env
- Start dev reactjs: yarn start||npm start
- Start dev server: yarn server||npm run server
Edit file app/pages/routes.js
    <Switch>
        {...}
        Add new route in here
    </Switch>
Look example at file app/components
- Add action with call data from api
- Add preRender static method with 2 params store of redux and url in request in Component in Route and call dispatch action with api
- Build: yarn run build||npm run build
- Build and review in local: yarn run build:dev||npm run build:dev
- Build and start project: yarn run build:start||npm run build:start
- Setup:
- heroku create $APP_NAME
- heroku buildpacks:add --index 1 https://github.com/mars/create-react-app-buildpack.git
- heroku buildpacks:add --index 2 heroku/nodejs
- Deploy:
git push heroku yourbanch:master
- Config data with create-react-app
- Use scss with node-sass
- Renderserver side with redux
- Deploy with heroku
- React router
- Integrate redux
- Integrate redux-form
- JWT in server
- React-Toolbox
- Example with REST
- With reactjs see more create react app
- Proxy with development, you change port or url in proxy in package.json
- React router dom see more click here
- Seo with reactjs see more click here
- Api with express see more click here
- Database with mongoosejs see more click here
- Deployment with aws through Elastic Beanstalk click here
- Dotenv click here
