• This repository has been archived on 11/Jan/2021
  • Stars
    star
    349
  • Rank 121,528 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 10 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Yet another react starterkit. Including react-router, reflux, jest, webpack, gulp and stylus.

React Starterkit

This repository is unmaintained. Please check out our new React Starter

This react starterkit provides a prepared development environment based on gulp, stylus and webpack. The internal data flow is handled with Reflux and the routing is managed with the React-Router.

Demo

This starterkit does not include some fancy UI stuff but is a lightweight starting point for your next react app.

Get the kit

$ git clone https://github.com/wbkd/react-starterkit.git && cd react-starterkit

Installation

Install all dependencies.

$ npm install

Development

Builds the application and starts a webserver with livereload. By default the webserver starts at port 1337. You can define a port with $ gulp --port 3333.

$ npm start

Build

Builds a minified version of the application in the dist folder.

$ gulp build --type production

Testing

We use jest to test our application.
You can run the tests that are defined under app/scripts/__tests__ with

$ npm test

Javascript

Javascript entry file: app/scripts/main.js

Reflux

We are using Reflux, which is an implemantion of the Flux Architecture. If you want to read more about Reflux, check out the readme of the reflux git repo.

React-Router

The routing is done with the react-router. It's especially great for SPA's. We would recommend to read the guide to get an overview of the router features.

ES6 with babel

We are working with the webpack babel loader in order to load our .js/.jsx files. Babel allows you to use ES6 features like class, arrow functions and much more.

CSS

CSS entry file: app/stylus/main.styl

Stylus

As you can see we are using stylus to preprocess our .styl files. If you didn't work with a css preprocessor before the stylus page is a good starting point to get to know what stylus can do for you.

If you want to use third-party CSS you just include it via @import 'path/to/your/third-party-styles.css' at the top of the main.styl file.

Webpack Hints

You can find the webpack configuration in the webpack.config.js file. We use the babel-loader in order to load .jsx and .js files via webpack. If it's possible install all your dependencies with NPM. Packages installed with NPM can be used like this:


var moduleXYZ = require('moduleXYZ');

You can find all loaders in this list.

###Requirements

  • node
  • npm
  • gulp

More Repositories

1

xyflow

React Flow |Β Svelte Flow - Powerful open source libraries for building node-based UIs with React (https://reactflow.dev) or Svelte (https://svelteflow.dev). Ready out-of-the-box and infinitely customizable.
TypeScript
22,656
star
2

awesome-d3

A list of D3 libraries, plugins and utilities
5,066
star
3

awesome-node-based-uis

A curated list with resources about node-based UIs
2,099
star
4

webpack-starter

✨ A lightweight foundation for your next webpack based frontend project.
JavaScript
1,924
star
5

awesome-interactive-journalism

A list of awesome interactive journalism projects.
1,827
star
6

d3-extended

Extends D3 with some common jQuery functions and more
JavaScript
274
star
7

riotjs-startkit

A Riot - PostCSS - Webpack Starterkit
JavaScript
132
star
8

react-flow-example-apps

Example React Flow apps for Create React App, Next.js and Remix.
TypeScript
121
star
9

react-starter

πŸš€ A minimal react boilerplate featuring easy-peasy state management and styled-components
JavaScript
110
star
10

ghost-wbkd

A ghost/journey theme.
CSS
100
star
11

pro-platform

✨ The subscriber platform for React Flow Pro. View advanced code examples, invite your team members and manage your subscription.
TypeScript
75
star
12

making-maps-with-react

🌐 Example React components for React-Leaflet, Pigeon Maps, React MapGL and more
JavaScript
74
star
13

react-flow-mindmap-app

A quick and organized mind map app built with React Flow. Follow the tutorial to learn how to build it yourself.
TypeScript
71
star
14

leaflet-swoopy

‡️ Swoopy Arrow Plugin for Leaflet
JavaScript
70
star
15

d3-discovery

A tool for exploring D3.js plugins
Vue
50
star
16

leaflet-truesize

Leaflet plugin for easily comparing sizes of geographical shapes
JavaScript
48
star
17

react-flow-docs

⚠️ This repo contains old versions of the React Flow website. The new repo is located at:
JavaScript
46
star
18

hapi-rest-starter-simple

A simple Hapi project that offers you a REST API based on Dogwater and Bedwetter.
JavaScript
43
star
19

dsv-loader

A webpack module to load dsv (e.g. .csv or .tsv) files.
JavaScript
35
star
20

from-data-to-sound

🎡 Simple Node.js script for transforming data to a MIDI file
JavaScript
33
star
21

vite-react-flow-template

A vite template to get started with React Flow
TypeScript
33
star
22

react-flow-docs-v9

Archived documentation of React Flow version 9. Powered by Gatsby.
JavaScript
31
star
23

web

πŸ“– This monorepo contains the xyflow website and the documentation sites for React Flow and Svelte Flow.
MDX
31
star
24

react-flow-web-audio

A simple Web Audio playground built with React Flow. Follow the tutorial to learn how to build it yourself.
JavaScript
19
star
25

frontend-starterkit

Starting point for web apps. It provides a prepared development environment based on gulp, stylus and webpack.
JavaScript
19
star
26

dashboard-prototyper

React Dashboard helps you to generate dashboard prototypes very quickly with "configuration over code".
JavaScript
17
star
27

leaflet-mapshot

🌍 A simple script for taking automated screenshots from a Leaflet map
JavaScript
14
star
28

bpa-wochenberichte-htw

Python
12
star
29

wordcount-api

API to count unique words in german and english texts
Python
10
star
30

wordcounter

Small tool to count words in a text.
JavaScript
8
star
31

geocoder

A small utility script for geocoding addresses in a csv file
JavaScript
8
star
32

ddj-catalogue

DDJ-Katalog Frontend
JavaScript
8
star
33

awesomer

Turn your awesome list into an HTTP API
JavaScript
7
star
34

mfund_traffic-notebook

A Jupyter Notebook for visualizing traffic data.
Jupyter Notebook
7
star
35

nginx-nvm-mongo

Packer template to create nginx-nvm-mongo stack images using Ansible provisioning
Shell
7
star
36

tresor

A tool that enables you to use Trello as a headless CMS
JavaScript
6
star
37

react-isomorphic-example

An example for isomorphic apps using React and Express.
JavaScript
6
star
38

germany-iconfont

An iconfont of the german states.
CSS
5
star
39

berlin-iconfont

An iconfont for Berlin.
CSS
4
star
40

piwik-dashboard

A frontend that displays data from the Piwik API.
JavaScript
4
star
41

react-flow-slide-show

TypeScript
4
star
42

vite-svelte-flow-template

A vite template to get started with Svelte Flow
Svelte
3
star
43

react-flow-hero-exploration

A place to explore different flows to use in the hero of our redesign.
JavaScript
1
star
44

ddj-catalogue-backend

Contains the API for the ddj-catalogue and the spreadsheet importer
JavaScript
1
star
45

reactflow-webpack4

Example React Flow + webpack 4.
JavaScript
1
star