Skip to content

Commit 6729fc8

Browse files
committed
Updated readme
1 parent 448a0bf commit 6729fc8

File tree

1 file changed

+15
-77
lines changed

1 file changed

+15
-77
lines changed

README.md

Lines changed: 15 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
1-
# React Redux Starter Kit
1+
# ES6Console.com
22

3-
[![Join the chat at https://gitter.im/davezuko/react-redux-starter-kit](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/davezuko/react-redux-starter-kit?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4-
[![Build Status](https://travis-ci.org/davezuko/react-redux-starter-kit.svg?branch=master)](https://travis-ci.org/davezuko/react-redux-starter-kit?branch=master)
5-
[![dependencies](https://david-dm.org/davezuko/react-redux-starter-kit.svg)](https://david-dm.org/davezuko/react-redux-starter-kit)
6-
[![devDependency Status](https://david-dm.org/davezuko/react-redux-starter-kit/dev-status.svg)](https://david-dm.org/davezuko/react-redux-starter-kit#info=devDependencies)
7-
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
8-
9-
This starter kit is designed to get you up and running with a bunch of awesome new front-end technologies, all on top of a configurable, feature-rich webpack build system that's already setup to provide hot reloading, CSS preprocessing with Sass, unit testing, code coverage reports, bundle splitting, and more.
10-
11-
The primary goal of this project is to remain as **unopinionated** as possible. Its purpose is not to dictate your project structure or to demonstrate a complete sample application, but to provide a set of tools intended to make front-end development robust, easy, and, most importantly, fun. Check out the full feature list below!
12-
13-
Finally, This project wouldn't be possible without the help of our many contributors, so [thank you](#thank-you) for all of your help.
3+
This is the main repository of es6console.com. A tool for playing around with ECMAScript 6 to 5 transformers.
144

155
## Table of Contents
166
1. [Features](#features)
@@ -33,68 +23,62 @@ Finally, This project wouldn't be possible without the help of our many contribu
3323
1. [Thank You](#thank-you)
3424

3525
## Features
26+
* [serverless](http://serverless.com)
3627
* [react](https://github.com/facebook/react)
3728
* [redux](https://github.com/rackt/redux)
3829
* [react-router](https://github.com/rackt/react-router)
3930
* [webpack](https://github.com/webpack/webpack)
4031
* [babel](https://github.com/babel/babel)
41-
* [express](https://github.com/expressjs/express)
42-
* [karma](https://github.com/karma-runner/karma)
4332
* [eslint](http://eslint.org)
4433

4534
## Requirements
4635
* node `^4.5.0`
4736
* yarn `^0.17.0` or npm `^3.0.0`
4837

49-
## Getting Started
50-
51-
After confirming that your development environment meets the specified [requirements](#requirements), you can create a new project based on `react-redux-starter-kit` by doing the following:
52-
5338
### Install from source
5439

5540
First, clone the project:
5641

5742
```bash
58-
$ git clone https://github.com/davezuko/react-redux-starter-kit.git <my-project-name>
43+
$ git clone https://github.com/matthisk/es6console.git <my-project-name>
5944
$ cd <my-project-name>
6045
```
6146

6247
Then install dependencies and check to see it works. It is recommended that you use [Yarn](https://yarnpkg.com/) for deterministic installs, but `npm install` will work just as well.
6348

6449
```bash
65-
$ yarn install # Install project dependencies
66-
$ yarn start # Compile and launch (same as `npm start`)
50+
$ npm install # Install project dependencies
51+
$ npm run dev # Compile and launch (same as `npm start`)
6752
```
68-
If everything works, you should see the following:
69-
70-
<img src="http://i.imgur.com/Kk2qTHC.png" />
7153

72-
While developing, you will probably rely mostly on `npm start`; however, there are additional scripts at your disposal:
54+
While developing, you will probably rely mostly on `npm dev`; however, there are additional scripts at your disposal:
7355

7456
|`npm run <script>`|Description|
7557
|------------------|-----------|
76-
|`start`|Serves your app at `localhost:3000`. HMR will be enabled in development.|
58+
|`start`|Serves your app at `localhost:8000`. HMR will be enabled in development.|
7759
|`compile`|Compiles the application to disk (`~/dist` by default).|
7860
|`dev`|Same as `npm start`, but enables nodemon for the server as well.|
7961
|`test`|Runs unit tests with Karma and generates a coverage report.|
8062
|`test:dev`|Runs Karma and watches for changes to re-run tests; does not generate coverage reports.|
8163
|`deploy`|Runs linter, tests, and then, on success, compiles your application to disk.|
82-
|`deploy:dev`|Same as `deploy` but overrides `NODE_ENV` to "development".|
64+
|`deploy:staging`|Same as `deploy` but overrides `NODE_ENV` to "development".|
8365
|`deploy:prod`|Same as `deploy` but overrides `NODE_ENV` to "production".|
66+
|`deploy_lambda`|Same as `deploy_lambda` but overrides `NODE_ENV` to "production".|
67+
|`deploy_lambda:staging`|Same as `deploy_lambda` but overrides `NODE_ENV` to "production".|
68+
|`deploy_lambda:prod`|Same as `deploy_lambda` but overrides `NODE_ENV` to "production".|
8469
|`lint`|Lint all `.js` files.|
8570
|`lint:fix`|Lint and fix all `.js` files. [Read more on this](http://eslint.org/docs/user-guide/command-line-interface.html#fix).|
8671

8772
## Application Structure
8873

89-
The application structure presented in this boilerplate is **fractal**, where functionality is grouped primarily by feature rather than file type. Please note, however, that this structure is only meant to serve as a guide, it is by no means prescriptive. That said, it aims to represent generally accepted guidelines and patterns for building scalable applications. If you wish to read more about this pattern, please check out this [awesome writeup](https://github.com/davezuko/react-redux-starter-kit/wiki/Fractal-Project-Structure) by [Justin Greenberg](https://github.com/justingreenberg).
9074

9175
```
9276
.
9377
├── bin # Build/Start scripts
9478
├── config # Project and build configurations
9579
├── public # Static public assets (not imported anywhere in source code)
9680
├── server # Express application that provides webpack middleware
97-
│ └── main.js # Server application entry point
81+
│ └── main.js # Development Server application entry point
9882
├── src # Application source code
9983
│ ├── index.html # Main HTML page container for app
10084
│ ├── main.js # Application bootstrap and rendering
@@ -111,46 +95,23 @@ The application structure presented in this boilerplate is **fractal**, where fu
11195
│ │ │ ├── assets # Assets required to render components
11296
│ │ │ ├── components # Presentational React Components
11397
│ │ │ └── routes ** # Fractal sub-routes (** optional)
114-
│ │ └── Counter # Fractal route
115-
│ │ ├── index.js # Counter route definition
116-
│ │ ├── container # Connect components to actions and store
117-
│ │ ├── modules # Collections of reducers/constants/actions
118-
│ │ └── routes ** # Fractal sub-routes (** optional)
11998
│ ├── store # Redux-specific pieces
12099
│ │ ├── createStore.js # Create and instrument redux store
121100
│ │ └── reducers.js # Reducer registry and injection
122101
│ └── styles # Application-wide styles (generally settings)
102+
├── lambda # AWS Lambdas
123103
└── tests # Unit tests
124104
```
125105

126106
## Development
127107

128108
#### Developer Tools
129109

130-
**We recommend using the [Redux DevTools Chrome Extension](https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd).**
131-
Using the chrome extension allows your monitors to run on a separate thread and affords better performance and functionality. It comes with several of the most popular monitors, is easy to configure, filters actions, and doesn’t require installing any packages.
132-
133-
However, adding the DevTools components to your project is simple. First, grab the packages from npm:
134-
135-
```bash
136-
npm i --save-dev redux-devtools redux-devtools-log-monitor redux-devtools-dock-monitor
137-
```
138-
139-
Then follow the [manual integration walkthrough](https://github.com/gaearon/redux-devtools/blob/master/docs/Walkthrough.md).
140-
141-
### Routing
142-
We use `react-router` [route definitions](https://github.com/reactjs/react-router/blob/master/docs/API.md#plainroute) (`<route>/index.js`) to define units of logic within our application. See the [application structure](#application-structure) section for more information.
143-
144110
## Testing
145111
To add a unit test, simply create a `.spec.js` file anywhere in `~/tests`. Karma will pick up on these files automatically, and Mocha and Chai will be available within your test without the need to import them. Coverage reports will be compiled to `~/coverage` by default. If you wish to change what reporters are used and where reports are compiled, you can do so by modifying `coverage_reporters` in `~/config/project.config.js`.
146112

147113
## Deployment
148-
Out of the box, this starter kit is deployable by serving the `~/dist` folder generated by `npm run deploy` (make sure to specify your target `NODE_ENV` as well). This project does not concern itself with the details of server-side rendering or API structure, since that demands an opinionated structure that makes it difficult to extend the starter kit. However, if you do need help with more advanced deployment strategies, here are a few tips:
149-
150-
### Static Deployments
151-
If you are serving the application via a web server such as nginx, make sure to direct incoming routes to the root `~/dist/index.html` file and let react-router take care of the rest. If you are unsure of how to do this, you might find [this documentation](https://github.com/reactjs/react-router/blob/master/docs/guides/Histories.md#configuring-your-server) helpful. The Express server that comes with the starter kit is able to be extended to serve as an API or whatever else you need, but that's entirely up to you.
152-
153-
## Build System
114+
ES6Console is hosted on Amazon S3. When running `npm run deploy` the `~/dist` folder is synced up to the s3 bucket configured in `config/environment.config.js`. The website requires several backend scripts which are hosted on AWS Lambda using the serverless framework. When running `npm run deploy_lambda` these lambdas are automatically deployed.
154115

155116
### Configuration
156117

@@ -193,29 +154,6 @@ These are global variables available to you anywhere in your source code. If you
193154

194155
Both `.scss` and `.css` file extensions are supported out of the box. After being imported, styles will be processed with [PostCSS](https://github.com/postcss/postcss) for minification and autoprefixing, and will be extracted to a `.css` file during production builds.
195156

196-
### Server
197-
198-
This starter kit comes packaged with an Express server. It's important to note that the sole purpose of this server is to provide `webpack-dev-middleware` and `webpack-hot-middleware` for hot module replacement. Using a custom Express app in place of [webpack-dev-server](https://github.com/webpack/webpack-dev-server) makes it easier to extend the starter kit to include functionality such as API's, universal rendering, and more -- all without bloating the base boilerplate.
199-
200157
### Production Optimization
201158

202159
Babel is configured to use [babel-plugin-transform-runtime](https://www.npmjs.com/package/babel-plugin-transform-runtime) so transforms aren't inlined. In production, webpack will extract styles to a `.css` file, minify your JavaScript, and perform additional optimizations such as module deduplication.
203-
204-
## Learning Resources
205-
206-
* [Starting out with react-redux-starter-kit](https://suspicious.website/2016/04/29/starting-out-with-react-redux-starter-kit/) is an introduction to the components used in this starter kit with a small example in the end.
207-
208-
## FAQ
209-
210-
Having trouble? Check out our [FAQ](https://github.com/davezuko/react-redux-starter-kit/wiki/FAQ:-Frequently-Asked-Questions) or submit an issue. Please be considerate by only posting issues that are directly related to this project; questions about how to implement certain React or Redux features are both best suited for StackOverflow or their respective repositories.
211-
212-
## Thank You
213-
214-
This project wouldn't be possible without help from the community, so I'd like to highlight some of its biggest contributors. Thank you all for your hard work, you've made my life a lot easier and taught me a lot in the process.
215-
216-
* [Justin Greenberg](https://github.com/justingreenberg) - For all of your PR's, getting us to Babel 6, and constant work improving our patterns.
217-
* [Roman Pearah](https://github.com/neverfox) - For your bug reports, help in triaging issues, and PR contributions.
218-
* [Spencer Dixon](https://github.com/SpencerCDixon) - For your creation of [redux-cli](https://github.com/SpencerCDixon/redux-cli).
219-
* [Jonas Matser](https://github.com/mtsr) - For your help in triaging issues and unending support in our Gitter channel.
220-
221-
And to everyone else who has contributed, even if you are not listed here your work is appreciated.

0 commit comments

Comments
 (0)