Giter Site home page Giter Site logo

planetx-react-postgres's Introduction

Ultimate React Boilerplate 2017 | PlanetX

Commitizen friendly

Found Universal Redux Example w/ Postgres/Knex


Next

New Counters feature: Postgres CRUD

  • countersSqlApp becomes available at new route '/counters-postgres'
  • countersSqlApp uses redux to optimistically CRUD the database
  • countersSqlApp can CRUD the database

History

Redux Thunk Counter

  • countersApp becomes available at new route '/counters'
  • countersApp attaches its store to the redux-store

Started w/ Found example for universal-redux

server-side rendering for the initial page load and a custom redux store

  • redux store is initially populated on the server
  • then the client rehydrates itself with the server's state.

Docs

  docs/psql-setup.md - install pg & redis

Usage

$ npm i
$ npm run db:setup    # yarn db:setup
$ npm start           # yarn start

Then open http://localhost:3000/ in your browser.

Development

Start by reviewing the documentation in /docs/ (which will be moved to the github wiki)

Create a Commit

This project uses commitizen and gitflow, for more about contributing checkout the wiki page!

$ npm run commit      # yarn commit

Setup

Either run db:setupComplete or each of the commands below

Create the database in the postgres server

$ npm run db:setup    # yarn db:setup

Sync the datbase to the latest migration

$ npm run db:latest    # yarn db:latest

Seed the database

$ npm run db:seed    # yarn db:seed

planetx-react-postgres's People

Contributors

falieson avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.