Coder Social home page Coder Social logo

frontend-template's Introduction

Front End Template with React

Initializing the Development Environment

  1. npm install to add dependencies
  2. gulp watch to build the app and launch a server on localhost:9000

Customizing for your project

  1. Clone or copy this repository into a new directory
  2. Run the initialization script chmod +x initialize.sh; ./initialize.sh. It will ask for:
    1. Repository SSH clone URL
    2. Development API Host
    3. Production API Host - if unknown give best guess
    4. QA App Name
    5. QA Host
    • If you want to start without a remote repo initialize with ./initialize.sh -t
  3. Update package.json
    1. Update author, name, version, description, and repository url with proper values
    2. Run npm outdated --depth=0 to see if there are new versions of dependencies. If so, consider updating them in the frontend template as well as the project
  4. Update application/index.html to replace @todo with proper values
  5. Replace or remove the MIT license (and related reference in the package.json) based on your project's requirements

Running Tests

  1. Run Jest tests with npm test
  2. Run React with Karma in Chrome and Firefox with npm run karma
  3. Run React tests with gulp at localhost:9001 with gulp test
    • Run a specific test or glob of tests with gulp test --path './__react-tests__/path/to/test/*/**.js'
  4. Run React from the command line with ./node_modules/karma/bin/karma start --single-run --browsers PhantomJS
  5. Run functional tests with gulp build --env ci && gulp disyntegration

frontend-template's People

Contributors

agerbens avatar areida avatar bjyoungblood avatar bobeagan avatar chrisshiplet avatar natestormer avatar paulstatezny avatar zpchavez 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.