Git Product home page Git Product logo

edmundcjj / express-webpack-react-redux-typescript-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from armour/express-webpack-react-redux-typescript-boilerplate

0.0 1.0 0.0 9.47 MB

:tada: A full-stack boilerplate that using express with webpack, react and typescirpt! (hot module reload and materialize-css supported)

Home Page: https://express-react-typescript.herokuapp.com/

License: MIT License

JavaScript 26.68% TypeScript 67.62% CSS 4.44% HTML 1.25%

express-webpack-react-redux-typescript-boilerplate's Introduction

Express Webpack React Redux Typescript Boilerplate

Dependency Status CircleCI Appveyor Coverage Status PRs Welcome Tested with jest License: MIT Template from jarvis

Example

  • Demo Page

    • A page contains the classic Todo List as follows:

      Demo page

  • Cocomic

    • An open-source platform for comic/manga collaboration (SFU CMPT470 course project, no typescript). source code here.

      Cocomic

Stack

How to run the example code

Prerequisite

  • node
  • yarn (recommended) or npm
  • docker (recommended) with docker-compose

Quickest way

The easiest way to run the example project is to use docker-compose:

docker-compose up --build

that's it :)

You can also follow instructions below if you want to customize it.

Install project dependencies

Go to project root directory:

yarn install

If you find permission problem when trying to install yarn globally, check this out.

Setup database and session store

You can either

  • run postgresql and redis using docker images:
docker-compose up -d postgres redis

or

  • maintain it by yourself, if so, make sure you set the right config in backend/config.json.

Build & Run

On development (with react-hot-reload and redux-devtools):

yarn run-dev

On production (with uglify-js and other optimazitions):

yarn run-prod

Profile assets bundle

Thanks to webpack-bundle-analyzer, we can analyze and then optimize our assets bundle through DLL Plugin.

yarn profile

Run test

yarn test

Code coverage

yarn coveralls

Deployment

yarn deploy

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT License

express-webpack-react-redux-typescript-boilerplate's People

Contributors

armour avatar dependabot[bot] avatar takashil avatar

Watchers

Edmund Chow 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.