Git Product home page Git Product logo

app-hub's Introduction

app-hub

codecov Build Status dependencies Status devDependencies Status

About

This project is a central hub for BPAS applications. It is uses React Boilerplate as its foundation and Office UI Fabric React for core styling and components.

Getting Started

Clone the repo

git clone https://github.com/vollmerr/app-hub.git

Install the packages

cd app-hub
npm install

Build mock data

npm run mock:build

This will only ever have to be done once, unless changes are made to the mock api data format.

Start the project in Mock mode

Start the mock API

npm run mock:api

It will now be available at http://localhost:3001. If it is the first time running the mock API, see Building test data.

In another terminal, start the application in mock mode

npm run mock

It will now be available at http://localhost:3000

For testing different mock users, select a token from the 'Mock Options' panel in the top right.

Start the project in Dev mode

npm start

It will now be available at http://localhost:3000

For testing different dev users, select a token from the 'Developers Options' panel in the top right.

Build the Project

To build the project for production

npm run start:production

The propject will be built to the '/build' folder.

Testing the project

To test all files a single time with coverage (cannot update snapshots using this)

npm test

To test only files that have changed

npm run test:watch

To test only files that have changed while running in mock mode

npm run mock:watch

To test only files that have changed while running in dev mode

npm run start:watch

Adding a New App

npm run generate app

Examples

There are two forms of examples in this repo as follows:

Demo App

  • located in app/containers/Demo*
  • ignored in tests/coverage, so no examples of those in there
  • run in dev or mock mode to view

Specfic examples

  • located in app/examples/*
  • detailed comments throughout for explanations
  • run npm run start:examples to start

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.