Git Product home page Git Product logo

basic-react-app's Introduction

basic-react-app

forthebadge

Basic React App is a cli tool for generating a basic react applciation. This app supports react v16.6, react-router v4, babel v7 and webpack v4. Webpack is configured with babel loaders for bundling react, modern javascript (ES6), css, sass, and image files for development and production.

Quick Start

Clone source code from the github repo

git clone https://github.com/michaelmendoza/basic-react-app.git

Link the project using npm

npm link

Generate a react app into appname folder

basic-react-app appname

Then install npm dependencies

cd appname; npm install

For development use npm run dev to run your app with a dev server on http://localhost:8080. For production use npm run build to create a minified bundled javascript file in dist folder.

Architecture Overview

After install, running basic-react-app appname will create a directory called appname inside the current folder. Inside that folder, the app will generate the basic project structure.

appname
  |- /src
    |- index.js       // Entry point for javascript
    |- index.html     // App entry point 
    |- App.jsx        // App Layout
    |- assets         // Folder for images and assets
    |- components     // Folder for react jsx components
    |- containers     // Folder for react-router jsx pages  
    |- stores         // Folder for data stores
    |- styles         // Folder for css and sass stylesheets
  |- package.json     // NPM config file
  |- webpack.config   // Webpack config file
  |- .gitignore       // Git ignore
  |- .babelrc         // Babel config file
  |- /dist            // Folder where webpack bundles apps

What's Included?

Your project environment will include everything you need for a basic react application including:

  • React, JSX, ES6
  • CSS, SASS
  • React Router v4, Material-UI
  • Webpack script using Babel to bundle JS, JSX, CSS, SASS and Image files for production
  • Webpack Development Server

Why use Basic React App?

Basic React App is great for:

  • Learning React
  • Starting Simple SPA React Applications
  • Creating simple examples for React

Popular Alternatives

  • Create React App
  • Simple React App

References

basic-react-app's People

Contributors

michaelmendoza avatar

Stargazers

 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.