Giter Site home page Giter Site logo

nycda-react-webpack-template's Introduction

NYCDA React / Webpack Template

This template allows you to very quickly spin up a React application that's equipped with Webpack for builds. It provides the following features:

  • ES2017 and JSX using Babel
  • Style components using SASS
  • Asset resolving via file loader for JS and CSS
  • Image compression using image-webpack-loader
  • Hot module replacement with Webpack Dev Server
  • Source maps in development and production
  • A standard minified production build

Getting Started

You must be on a Node version greater than 6 to use this. Once you've npm installed, there are only two commands:

  • npm run start - Runs the development server (Specify port with PORT, default 3000)
  • npm run build - Builds the production version, which goes into dist

Once you start building things with this template, you may want to remove the .placeholder files in src/assets/fonts, src/assets/images, and src/components folders. They were added just to check in those directories.

Project Structure

.
├── src                # Source code, including raw assets
│   ├── App.jsx        ### The top-level component for React
│   ├── App.scss       ### Any general, non-component styling done here
│   ├── assets         ### Static assets
│   │   ├── fonts      ##### Fonts(eot|otf|ttf|woff|woff2)
│   │   └── images     ##### Images (gif|png|jpe?g|svg|ico)
│   ├── components     ### Any shared components
│   ├── index.ejs      ### HTML template for the app
│   └── index.js       ### Webpack entry point / component mounting
├── dist               # Any built files are here, not checked in
└── webpack.config.js  # Webpack configuration for dev _and_ production

License

This is available under the MIT License. Any distributions of it must also carry this license.

nycda-react-webpack-template's People

Contributors

wbobeirne avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

janepark7 dtofuah

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.