Server-side rendering! Route-based code-splitting! GraphQL! It's all here.
And, yeah, React.
- You'll need MongoDB running on your machine, plus Node.js 6 or higher.
- Create a file called
.envin the project root and addDB_HOST=<db-host>. yarnornpm installto install packages.
This boilerplate comes with an un-styled yet functional shopping-cart app to demonstrate how everything works.
yarn run client: Build development bundle of client-side code.yarn run server: Bundle the server-side code with Webpack.yarn start: Start the Node server in development mode, including Webpack Hot Middleware.yarn run dev: The above three commands, consecutively.yarn run clean: Delete compiled assets.yarn run client:prod: Build production bundle of client-side code.yarn run start:prod: Start the Node server in production mode.yarn run prod: The above three commands, plusyarn run server, consecutively.
MIT.
- Dockerize
- Styles
- Use
babel-env