Skip to content

alaunal/react-templates

Repository files navigation

React Templates

React Templates is a starter kit tool that makes it easy for developers, especially frontend web developers, to start their projects from scratch using the React Js library. This tool is already packed with plugins or other libraries which are generally used by React JavaScript developers.

Features

The main features of the React Templates include:

  1. React starter kit
    • CRA (create-react-app)
  2. Routing and navigation
  3. Flux architecture
    • Redux a Predictable State Container for JS Apps
    • Redux Wrapper: Rematch is Redux best practices without the boilerplate
  4. UI Toolkit & Styling
    • Twin.macro, Twin blends the magic of Tailwind with the flexibility of css-in-js.
    • Styled-components, Visual primitives for the component age
  5. Utilities and other tools
    • Axios, Promise based HTTP client for the browser and node.js
    • Lodash, A JavaScript utility library delivering consistency, modularity, performance, & extras.

Requirements

This should be installed on your computer in order to get up and running:

  • Node.js Required node version is >= 10.0.*
  • npm Version 6.0.*

Get Started

let's start using the React Starter project by following the steps below.

installation & setup your project

  1. Clone Repo Make sure you have a React boilerplate clone repository.
    git clone https://github.com/alaunal/react-templates.git [project-name]
    
  2. Setup git config
    // -- remove git config
    $ rm -rf .git
    
    // -- resetup git
    $ init git
    
  3. Install dependencies
    npm install
    

If you have done the syntax above before, there is no need to do a step 3 process. but if you are not sure then just do it for check updated.

Serve or deploy Project

In the project directory, you can run:

yarn start

Runs the app in the development mode. Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits. You will also see any lint errors in the console.

yarn build

Builds the app for production to the build folder. It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes. Your app is ready to be deployed!

See the section about deployment for more information.