Snippod-Starter-Demo-App-Front is a front part of snippod-starter demo application. A Snippod-Starter-Demo-App is a 'Full Stack Single Page Application' for the starter who want to be a web application developer. This repository code is based on React and Redux. You can check out the hosted version DEMO at http://snippod-starter-demo-front.ap-northeast-2.elasticbeanstalk.com.
Base Repository, Module
We made this using these technologies.
- Redux Form
- Semantic UI
- React Router and react-router-redux
- React Intl
- npm v2.15.5 or higher
- Node v6.11.1 - We highly recommend Node Version Manager (NVM)
You have to git clone this repository.
git clone https://github.com/shalomeir/snippod-starter-demo-app-front
npm install npm run build:semantic
After node packages are installed, automatically build a semantic ui for styling and bundling by webpack. A module bundling by webpack process is a little time consuming task (about 60 sec).
Running Dev Server
npm run dev
'snippod-starter-demo-app-server' which should be run first in your computer.Dev local node server interacted with localhost REST API server
npm run dev-local
Whatever you execute a development server, first executing time is a little time consuming task. (about 40sec) After then, react-hot-loader and redux-devtools are executed with a development server. So you can easily fix and debug a code. You don't needed to reboot a server for development.
Building and Running Production Server
npm run build npm run start
Also customized theme semantic ui source are located './semantic/src/site' directory. All semantic ui code are merged by webpack.
At some point, Inline Styles is injected by Radium.
What initially gets run by Express is
bin/server.js, which does little more than enable ES6 and ES7 awesomeness in the server-side node code. It then initiates
We'd like to apply node server for react server-side rendering, but didn't make perfectly yet.
A front side ajax call usually doing in Actions. We use Ducks for handling actionTypes and actions, reducer.
Almost front source architecture is based on 'React Redux Universal Hot Example'.
If you want to follow step by step, go to a codelab branch of this repository.
More information is available at this blog post written in Korean.
A demonstration of this app can be seen here.
FAQ (from 'react-redux-universal-hot-example')
Help! It doesn't work on Windows! What do I do?
How do I disable the dev tools?
They will only show in development, but if you want to disable them even there, set
Contributions, questions and comments are all welcome and encouraged.
Copyright 2018 Snippod Inc.