- Shwetha Sivakumar
- Mac OS X, Windows, or Linux
- Yarn package + Node.js v6.5 or newer
- Text editor or IDE pre-configured with React/JSX/Flow/ESlint (learn more)
Before you start, take a moment to see how the project structure looks like:
.
βββ /build/ # The folder for compiled output
βββ /docs/ # Documentation files for the project
βββ /node_modules/ # 3rd-party libraries and utilities
βββ /public/ # Static files which are copied into the /build/public folder
βββ /src/ # The source code of the application
β βββ /components/ # React components
β βββ /data/ # GraphQL server schema and data models
β βββ /routes/ # Page/screen components along with the routing information
β βββ /client.js # Client-side startup script
β βββ /config.js # Global application settings
β βββ /server.js # Server-side startup script
β βββ ... # Other core framework modules
βββ /test/ # Unit and end-to-end tests
βββ /tools/ # Build automation scripts and utilities
β βββ /lib/ # Library for utility snippets
β βββ /build.js # Builds the project from source to output (build) folder
β βββ /bundle.js # Bundles the web resources into package(s) through Webpack
β βββ /clean.js # Cleans up the output (build) folder
β βββ /copy.js # Copies static files to output (build) folder
β βββ /deploy.js # Deploys your web application
β βββ /postcss.config.js # Configuration for transforming styles with PostCSS plugins
β βββ /run.js # Helper function for running build automation tasks
β βββ /runServer.js # Launches (or restarts) Node.js server
β βββ /start.js # Launches the development web server with "live reload"
β βββ /webpack.config.js # Configurations for client-side and server-side bundles
βββ Dockerfile # Commands for building a Docker image for production
βββ package.json # The list of 3rd party libraries and utilities
βββ yarn.lock # Fixed versions of all the dependencies
You can start by cloning the latest version of this project on your local machine by running:
$ git clone \
git@github.com:hmeinertrita/MyPlanetGirlGuides.git
$ cd MyPlanetGirlGuidesThis will install both run-time project dependencies and developer tools listed in package.json file.
This command will build the app from the source files (/src) into the output
/build folder. As soon as the initial build completes, it will start the
Node.js server (node build/server.js) and Browsersync
with HMR on top of it.
http://localhost:3000/ β Node.js server (
build/server.js) with Browsersync and HMR enabled
http://localhost:3000/graphql β GraphQL server and IDE
http://localhost:3001/ β Browsersync control panel (UI)
Now you can open your web app in a browser, on mobile devices and start
hacking away. Whenever you modify any of the source files inside the /src folder,
the module bundler (Webpack) will recompile the
app on the fly and refresh all the connected browsers.
Note that the yarn start command launches the app in development mode,
the compiled output files are not optimized and minimized in this case.
- Getting Started with React.js
- Getting Started Redux.js
- About Universal-Router
- React.js Questions on StackOverflow
- React.js Discussion Board
- Flow β A static type checker for JavaScript
- The Future of React
- Learn ES6, ES6 Features
Based off of the react-starter-kit
[rsk]: https://www.reactstarterkit.com
[demo]: http://demo.reactstarterkit.com
