All Projects → spapas → react-tutorial

spapas / react-tutorial

Licence: Unlicense license
A react-tutorial

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to react-tutorial

Reactjs101
從零開始學 ReactJS(ReactJS 101)是一本希望讓初學者一看就懂的 React 中文入門教學書,由淺入深學習 ReactJS 生態系 (Flux, Redux, React Router, ImmutableJS, React Native, Relay/GraphQL etc.)。
Stars: ✭ 4,004 (+3944.44%)
Mutual labels:  flux, react-tutorial
react-workshops
Online react workshops
Stars: ✭ 36 (-63.64%)
Mutual labels:  flux, redux-thunk
django-flag-app
A pluggable django application that adds the ability for users to flag(or report) your models.
Stars: ✭ 13 (-86.87%)
Mutual labels:  django-rest-framework
formica
A discord bot that collects and analyzes form data
Stars: ✭ 20 (-79.8%)
Mutual labels:  django-rest-framework
ONNX.jl
Read ONNX graphs in Julia
Stars: ✭ 112 (+13.13%)
Mutual labels:  flux
browserify-persist-fs
Efficient & stable persistent filesystem cache for browserify
Stars: ✭ 16 (-83.84%)
Mutual labels:  browserify
crossbones
Fullstackian award, 1707-FSA-NY. a cross-platform barebones react native setup inspired by https://github.com/FullstackAcademy/bones by
Stars: ✭ 19 (-80.81%)
Mutual labels:  redux-thunk
Flue
Yep, another Flux implementation for Vuejs. Docs: https://francescosaveriozuppichini.github.io/Flue/header.html
Stars: ✭ 13 (-86.87%)
Mutual labels:  flux
django-rest-witchcraft
Django REST Framework integration with SQLAlchemy
Stars: ✭ 38 (-61.62%)
Mutual labels:  django-rest-framework
React-Playground
Learning reactjs from the ground up (router, redux, thunk, hooks, context, portals, and functional components)
Stars: ✭ 15 (-84.85%)
Mutual labels:  redux-thunk
nextjs-redux
Boilerplate for using nextjs and redux
Stars: ✭ 13 (-86.87%)
Mutual labels:  redux-thunk
oauth2-example
A simple Oauth2 example with Go
Stars: ✭ 82 (-17.17%)
Mutual labels:  article
drf-angular-docker-tutorial
Dockerized Django Back-end API using DRF with Angular Front-end Tutorial
Stars: ✭ 53 (-46.46%)
Mutual labels:  django-rest-framework
drf-jwt-example
Code samples of the tutorial "How to Use JWT Authentication with Django REST Framework"
Stars: ✭ 31 (-68.69%)
Mutual labels:  django-rest-framework
mafuba
Simple state container for react apps.
Stars: ✭ 20 (-79.8%)
Mutual labels:  flux
Sunscreen
🌅 A macOS app that sets your wallpaper based on sunrise and sunset.
Stars: ✭ 52 (-47.47%)
Mutual labels:  flux
react-native-firebase-redux-authentication
Firebase Authentication using React Native, Redux, Router flux.
Stars: ✭ 45 (-54.55%)
Mutual labels:  flux
token-authentication-django
This is django app used to explain the tutorial present on https://medium.com/@shubhambansal_89125/token-based-authentication-for-django-rest-framework-44586a9a56fb
Stars: ✭ 27 (-72.73%)
Mutual labels:  django-rest-framework
TA-BOT
An open source Telegram bot which can be used as a teaching assistant bot if you are trying to find an easy and secure way to communicate with your students.
Stars: ✭ 20 (-79.8%)
Mutual labels:  django-rest-framework
g5-component
Event based Browserify component scaffold. ⚾
Stars: ✭ 15 (-84.85%)
Mutual labels:  browserify

A (not so simple) React application

This is a central repository that hosts various versions of the react project that correspond to the following articles from http://spapas.github.io/:

To be able to follow the articles, I've added a bunch of tags in the repository (they go from the simplest case to the most complex one):

  • react-only: Use react only
  • react-only-validation: Add validation to the above version
  • react-flux: Introduce flux to the react-only version
  • react-flux-better-organization: Improve the code structure by adding modules etc
  • react-flux-complex: A more complex app with react and flux
  • react-redux: Use redux with react
  • react-redux-poll-update: Update UI automatically when there are changes to the data (uses polling)

Get code for a tag

To get the code for a tag, just clone the repository and do a:

git checkout TAG

python manage.py syncdb

If you use Django 1.7 or later.

python manage.py migrate

npm install

If you want to go to a different tag, you'll just do again a checkout to the corresponding tag and do an npm install, but you'll need to delete the db.sqlite3 file (that contains the database schema for the application) and then do a syncdb again because there may be differences in the database between different tags.

Running the application

First, you must install required modules.

pip install -U -r requirements.txt

Now, to actually run the application, you'll need to use

python manage.py runserver

to start the django development server (or run rs.bat/rs.sh depending on your shell). For the react-only version you can directly modify the js files and see the differences when you refresh the page in your browser. However, for all other versions a node-js toolset with browserify is used to compile the javascript sources to the bundle that is actually used.

So, when developing I recommend running npm run watch to start watchify which automatically re-builds your javascript bundle when it detects a change. Another solution is to run npm run build that will create a (minified) bundle with the current sources (but will need to be re-run by hand when something in your javascript changes).

You can find more info about how I use this node-js toolset (browserify, watchify, uglify, babel etc) @ http://spapas.github.io/2015/05/27/using-browserify-watchify/ for a basic tutorial and @ http://spapas.github.io/2015/11/16/using-browserify-es6/ for how to use ES6.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].