GithubHelp home page GithubHelp logo

lohi212 / react-simple-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from udaypydi/react-simple-boilerplate

1.0 0.0 0.0 7.36 MB

Simple React Boilerplate with Webpack, Github Actions, Scss, Lazy Loading etc....

Home Page: https://react-simple-boilerplate.vercel.app

License: MIT License

JavaScript 97.44% HTML 0.61% SCSS 1.95%

react-simple-boilerplate's Introduction

Start your next react project in seconds

A simple react boilerplate with webpack hmr and latest babel packages. It comes with inbuilt Travis-CI for PR checks, lint checks and builds. Kick start the development with tailwind css, react hooks and much more. It comes with an inbuild typescript support. So you dont have to worry anymore to add typescript files to your project.

This React Boilerplate works on macOS, Windows, and Linux.
If something doesn’t work, please file an issue.

Quick Overview

git clone https://github.com/udaypydi/react-simple-boilerplate.git
cd my-app
yarn install
npm run dev

Then open http://localhost:9000/ to load your app.
When you’re ready to deploy to production, create a minified bundle with npm run build.

Get Started Immediately

You don’t need to install or configure tools like webpack or Babel.
They are reconfigured and hidden so that you can focus on the code.

Clone the project, and you’re good to go.

Prerequisites

Creating an App

You’ll need to have Node 10.16.0 or higher version on your local development machine. You can use nvm (macOS/Linux) or nvm-windows to switch Node versions between different projects.

To create a new app, you should clone this repository using the following command:

Clone

git clone https://github.com/udaypydi/react-simple-boilerplate.git my-app

It will create a directory called my-app inside the current folder.
Inside that directory, it will generate the initial project structure.

No configuration or complicated folder structures, only the files you need to build your app.
Once the installation is done, you can open your project folder:

cd my-app

Inside the newly created project, you can run some built-in commands:

yarn install

It will install all the packages that are required for project to up and running

npm run dev

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

The page will automatically reload if you make changes to the code.
You will see the build errors and lint warnings in the console.

npm run test

Runs the test watcher in an interactive mode.
By default, runs tests related to files changed since the last commit.

Read more about testing.

npm run lint

Runs the eslint over the src dir. You get a list of list errors and warnings if any.

npm run lint:fix

Run this command to autofix eslint issues. All the autofixable issues will be fixed.

npm run build or 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.

Website

This website is built using Docusaurus 2, a modern static website generator.

Installation

$ yarn

Local Development

$ yarn start

This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.

Build

$ yarn build

This command generates static content into the build directory and can be served using any static contents hosting service.

Deployment

$ GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy

If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.

react-simple-boilerplate's People

Contributors

udaypydi avatar mvhk avatar dependabot[bot] avatar

Stargazers

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