app-skeleton
app-skeleton copied to clipboard
Simple JS App Skeleton (React, SemanticUI, Babel, Standard, ES6, Webpack, React-router)
Note: This has been moved to https://github.com/bedrockio/bedrock-core
Simple JS App Skeleton
Here's an app skeleton that binds together common frameworks du-jour:
Note: The purpose of this skeleton is to provide a simple UI skeleton that can be supplemented with backend/deployment specific tools (Node, Ethereum, Mobile, etc).
Other Features
- Seemless pushState routing using React Router V4
- Full login/signup flow with separate dashboard and homepage router
- All CSS and assets served via Webpack/StyleLoader
- Uses Semantic UI as a rich UI element base
- Uses ES6 style React components
- Code hotswapping
- Static server
Install Dependencies
Run in the project root folder:
npm install
Run
The following command serves all HTML/JS/CSS and watches all changes to src/*.js
npm start
UI is running at http://localhost:3001/ Admin is running at http://localhost:3002/
Directory Structure
package.json- Configure dependencieswebpack.config.js- Bundling and build configurationserve-static- Static serverserve- Static server for developmentdist/*- Files generated by webpack, incuding index.html. These are the assets that should be HTTP servedsrc/utils- Home of specific JS helper utilities like for examplerequest.jsfor doing API requestssrc/components- Home of reuseable componentssrc/assets- Images, favicons, pdf ...src/config- Configurationssrc/App/*- Components that are tightly coupled to the App UIsrc/App/index- Main entrypoint into App UIsrc/Admin/*- Components that are tightly coupled to the Admin UIsrc/Admin/index- Main entrypoint into Admin UI
TODO
- [ ] Bundle improvements
- [ ] Add Dashboard section
- [ ] Add settings section
- [ ] Admin UI