Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/souvikbasu/react16-seed-with-apollo-graphql-scss-router4-ssr-tests-eslint-prettier-docker-webpack3-hot

Seed to create your own project using React with Apollo GraphQL client
https://github.com/souvikbasu/react16-seed-with-apollo-graphql-scss-router4-ssr-tests-eslint-prettier-docker-webpack3-hot

apollo-client docker eslint graphql hot-reload jest mocha prettier react react-router reactjs scss seed ssr webpack3

Last synced: 3 months ago
JSON representation

Seed to create your own project using React with Apollo GraphQL client

Awesome Lists containing this project

README

        

# React seed project to create your own app
Use this seed to create your own React app. It uses React v16 and has following features
* Apollo client to connect to GraphQL server
* SCSS
* React Router v4
* Server Side Rendering
* Snapshot tests using Jest and Enzyme
* Imperative testing using Mocha and Chai
* ESLint
* Prettier
* Docker
* Webpack 3
* Hot reloading
* Security
* Compression

The app is created by ejecting from Create React App cli

## Getting started

Clone this repository

```
git clone https://github.com/souvikbasu/react16-seed-with-apollo-graphql-scss-router4-ssr-tests-eslint-prettier-docker-webpack3-hot.git
```

To install dependencies
```
yarn
```

To run the app on localhost (Client side rendering)
```
yarn start
```
The above command runs the app using Webpack dev server.
Access the app at http://localhost:3000

To build production code
```
yarn build
```
The code will be created in the `build` folder

To run Node server (SSR)
```
yarn run start:prod:server
```
The above command runs the app in a production level node server
Access the app at http://localhost:3000

### App configuration
Change `developer`, `production` or `test` config at `./src/appSettings`