All Projects → lapanti → ts-react-boilerplate

lapanti / ts-react-boilerplate

Licence: MIT license
A very opinionated (React/TypeScript/Redux/etc) frontend boilerplate

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to ts-react-boilerplate

Express Webpack React Redux Typescript Boilerplate
🎉 A full-stack boilerplate that using express with webpack, react and typescirpt!
Stars: ✭ 156 (+262.79%)
Mutual labels:  yarn, react-router, react-redux
Egg React Typescript Boilerplate
Egg React TypeScript Server Side Render (SSR) / Client Side Render (CSR)
Stars: ✭ 56 (+30.23%)
Mutual labels:  react-dom, react-router, react-redux
React Admin
基于antd、redux-observable、redux-thunk、react-router响应式SPA脚手架,后台管理系统demo. 权限管理,用户管理,菜单管理。无限级菜单,下拉树形选择框
Stars: ✭ 141 (+227.91%)
Mutual labels:  redux-observable, react-router, react-redux
awesome-web-react
🚀 Awesome Web Based React 🚀 Develop online with React!
Stars: ✭ 31 (-27.91%)
Mutual labels:  react-router, react-redux
coconat
🍥 StarterKit Builder for rocket-speed App creation on 🚀 React 17 + 📙 Redux 4 + 🚠 Router 5 + 📪 Webpack 5 + 🎳 Babel 7 + 📜 TypeScript 4 + 🚔 Linters 23 + 🔥 HMR 3
Stars: ✭ 95 (+120.93%)
Mutual labels:  yarn, react-router
Quora
Building An Exclusive Community of PEC Graduates and Students.The main features of the website are “PEC Quora” and “PEC Connect”
Stars: ✭ 26 (-39.53%)
Mutual labels:  yarn, react-redux
iwish
I wish that too!
Stars: ✭ 19 (-55.81%)
Mutual labels:  yarn, react-redux
Molecule
⚛️ – :atom: – ⚛️ Boilerplate for cross platform web/native react apps with electron.
Stars: ✭ 95 (+120.93%)
Mutual labels:  yarn, react-router
Js Stack From Scratch
🛠️⚡ Step-by-step tutorial to build a modern JavaScript stack.
Stars: ✭ 18,814 (+43653.49%)
Mutual labels:  yarn, react-router
Js Stack Boilerplate
Final boilerplate code of the JavaScript Stack from Scratch tutorial –
Stars: ✭ 145 (+237.21%)
Mutual labels:  yarn, react-router
hot-redux-chassis
Modern React/Redux/RxJS application using all the latest and greatest stuff from the community 🔥
Stars: ✭ 20 (-53.49%)
Mutual labels:  redux-observable, react-router
React-Redux-Enterprise
A React-Redux boilerplate for enterprise/large scaled web applications
Stars: ✭ 77 (+79.07%)
Mutual labels:  redux-observable, react-redux
molecule
⚛️ –  – ⚛️ Boilerplate for cross platform web/native react apps with electron.
Stars: ✭ 95 (+120.93%)
Mutual labels:  yarn, react-router
react-spa-template
This is a sample template for single page applications built using React + Router to work with webpack dev server
Stars: ✭ 19 (-55.81%)
Mutual labels:  yarn, react-router
Gulp Scss Starter
Frontend development with pleasure. SCSS version
Stars: ✭ 339 (+688.37%)
Mutual labels:  yarn, bem
react-webpack2-skeleton
Get started with React with Webpack2, React-Router, Redux, Code Splitting and Server Rendering
Stars: ✭ 59 (+37.21%)
Mutual labels:  yarn, react-router
Tsdx
Zero-config CLI for TypeScript package development
Stars: ✭ 9,010 (+20853.49%)
Mutual labels:  yarn, react-dom
React Admin
基于[email protected]的react动态权限后台管理系统模板
Stars: ✭ 151 (+251.16%)
Mutual labels:  react-dom, react-redux
Registration-and-Login-using-MERN-stack
Simple Registration and Login component with MERN stack
Stars: ✭ 210 (+388.37%)
Mutual labels:  yarn, react-router
React Redux Styled Hot Universal
react boilerplate used best practices and focus on performance
Stars: ✭ 147 (+241.86%)
Mutual labels:  yarn, react-router

A very opinionated frontend boilerplate

Greenkeeper badge Build Status License: MIT Dependency Status DevDependency Status Coverage Status Code Climate

Purpose

This is all you need to get started in developing your own web application, using TypeScript, React, server-side rendering and all the other hip tools. If you know what you are doing, you can follow the quick start guide or you can go learn with the walk-through starting here.

Contents

Quick start guide

Requirements

  • If you don't already have it, install Node
  • If you don't already have it, install git
  • Install Yarn

Download the source code

  1. Open up your favorite kind of console
  2. Navigate to the folder in which you want to store the source code
  3. Run git clone [email protected]:Lapanti/ts-react-boilerplate.git

Starting development

  1. Open up the source code in your favorite TypeScript-capable editor (I recommend Visual Studio Code if you don't have a preference)
  2. Run yarn in the console to install dependencies (it'll take a while on the first run, so go on and read ahead while you wait)
  3. Read through the comments in all the source files to get yourself acquinted with the ideas, concepts and patterns
  4. Start the application by running yarn develop in your console (inside the folder you downloaded the code to) and open up your browser in the address it prints out
  5. Create a deployable version of the application by running yarn build
  6. Start the deployable version by running yarn start or read the How to Docker guide to Dockerize your application
  7. To test your application, run yarn test
  8. Start modifying the code to build your own application

Tips and suggestions

  • Make sure everything has a type (the more you squeeze out of the compiler the easier you're going to have it while developing)
  • Follow BEM-naming with CSS
  • Follow Redux-ducks pattern except that name the reducers as according to the file (see IndexReducer.tsx for an example)

How to Docker

The Dockerfile is where you can find the configuration to build a Docker image out of your application. The first line of the Dockerfile (starting with FROM) includes the base for your Dockerfile, feel free to change it if you want to.

  1. Put your email to the fourth line in the Dockerfile
  2. In your console run docker build .
  3. In your console run docker run -d -p 8080:8080 bd9b1d6725bc but replace bd9b1d6725bc with the image ID you received from the previous command
  4. Host your Docker image in your favorite cloud or local server (the web is filled with guides for this)

Dependencies

The following are all the dependencies of the project, with the reasoning behind their inclusion:

Contributing

Read the contribution guidelines

Development

  1. Clone this repo (or fork and clone)
  2. Navigate to the directory in console
  3. Run yarn in console
    • [Optional] Install livereload extension to your browser in Chrome or Firefox
  4. Run yarn develop in console
  5. Open your browser in the address printed to the console
  6. Modify the code with your favorite editor

Testing

  • You can run all the tests with yarn test
    • psst, you can update your snapshots with yarn test -- -u
  • You can run Jest tests in watch mode with yarn test:watch
  • You can run all tests with coverage with yarn test:ci

Roadmap

  • TypeScript
  • React
  • Redux
  • Server-side rendering
  • Browserify
  • SASS support
  • Add a test framework
  • Dockerize
  • Deployment scripts to AWS
  • create-ts-react-boilerplate scripts

License and contact information

You can contact me through here in Github or on Twitter

All of the code is licensed under the MIT license

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].