GithubHelp home page GithubHelp logo

shalomeir / snippod-starter-demo-app-front Goto Github PK

View Code? Open in Web Editor NEW
34.0 4.0 16.0 3.75 MB

A front part of the 'snippod-starter-demo-app' full stack demo application based on React and Redux

License: MIT License

JavaScript 66.27% CSS 32.90% HTML 0.82%

snippod-starter-demo-app-front's Introduction

Snippod-Starter-Demo-App-Front

Overview

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.

Alt Stack Diagram

Base Repository, Module

We made this using these technologies.

Getting Started

Preliminaries :

You have to git clone this repository.

git clone https://github.com/shalomeir/snippod-starter-demo-app-front

Installation

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

Dev local node server interacted with public shared REST API server hosted by Snippod Inc..

npm run dev

Dev local node server interacted with localhost REST API server 'snippod-starter-demo-app-server' which should be run first in your computer.

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

Description

Almost main javascript source are located './src' directory. 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 server.js. 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.

FAQ (from 'react-redux-universal-hot-example')

Help! It doesn't work on Windows! What do I do?

Fear not. chtefi has figured out what needs to be changed to make it work on Windows 8.

How do I disable the dev tools?

They will only show in development, but if you want to disable them even there, set __DEVTOOLS__ to false in /webpack/dev.config.js.

Reference

Contributing

Contributions, questions and comments are all welcome and encouraged.

License

MIT License.

Copyright 2018 Snippod Inc.

snippod-starter-demo-app-front's People

Contributors

seunghokimj avatar shalomeir avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.