Giter Site home page Giter Site logo

josh68 / hackoregon-frontend-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hackoregon/hackoregon-frontend-starter

0.0 2.0 0.0 1022 KB

This is a starter kit for Hack Oregon front-end development using React + Redux.

License: MIT License

JavaScript 98.31% HTML 1.69%

hackoregon-frontend-starter's Introduction

Hack OR Front-End Starter

This is a starter kit for Hack Oregon front-end development using React + Redux. This repo should help get started and keep the different projects aligned.

Getting Started

  1. Get Node 6.5 + - I recommend using Node Version Manager.
  2. git clone https://github.com/hackoregon/hackor-frontend-starter.git.
  3. npm i - install
  4. npm start - start dev mode (watching tests + linter)

Visit localhost:3000 in your browser to see the site. Save changes to files and the site will automatically update. No need to refresh!

Running Tests

There are two options:

  1. npm test - run tests
  2. npm run coverage - run tests w/ coverage

Running tests with coverage will take longer, but it's good to know what lines still need testing. CI tooling with use the npm run coverage command.

Much like npm start, npm test will watch files and automatically print out the new test output. Watch it in your terminal.

Working with the component library and the project site at the same time

The component library is required by each project site using an npm dependency. Npm offers a utility called npm link for using a local copy of a dependency when developing.

Once you have cloned both the component library and this project site, do the following:

  1. cd to your local component-library checkout
  2. Run npm link
  3. cd to your local project site checkout
  4. Run npm link react-component-library

Now any code in the project site that relies on components from the component library will import modules directly from your local checkout of component-library. Likewise, any changes you make to your local checkout of component-library will impact the project site. The project site will also watch these component-library changes and hot reload localhost:3000 for you.

Next up

  • Docs
  • Ability to remove reference files

Stories in Ready

hackoregon-frontend-starter's People

Contributors

davidedaniel avatar dingoeatingfuzz avatar johntasto avatar josh68 avatar pfarnach avatar tyreer 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.