Coder Social home page Coder Social logo

codehakase / enye-react-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from enyeinc/enye-react-template

0.0 1.0 0.0 6 KB

This is a boilerplate to help you quickly start developing your react app

JavaScript 82.94% CSS 1.07% HTML 15.99%

enye-react-template's Introduction

enye-react-template

This is a boilerplate code to help you focus on developing your react app without worrying too much about the infrastructural parts of building web applications.

Setup Development Environment

Make sure that you have the latest version of node/npm

npm install -g npm

Install eslint in atom code editor. From git bash, run the below code:

apm install linter-eslint
  • restart your atom if you had it open
  • atom will ask you to install other dependencies (i.e linter, linter-ui-default etc.), just keep clicking yes.

eslint main fucntion is to alert you if your javascript isn't written correctly

Once in the repo, install the npm dependencies:

npm install

Application Commands

If you look in the package.json, there are a 5 commands under scripts. You only really need to run npm run dev. This will do three things, It will:

  1. Build your application into a bundle that can be found at build/bundle.js
  2. Start your express server.
  3. Watch for any code change that you make and restart the browser with the new code.

contains live reload - which means when you add new code, the browser will automatically update

Writing Application Code

The app folder is where you will be writing most of the code for your application.

  • If you open the app folder you will see a components folder. The components folder provides you an example to writing your own React code.

If you need to add additional routes to your application, do so in the router.js;

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.