Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cloud-design-patterns-journey/inv-ui-team3


https://github.com/cloud-design-patterns-journey/inv-ui-team3

Last synced: 8 days ago
JSON representation

Awesome Lists containing this project

README

        

# Carbon React with Node.js

React is a popular framework for creating user interfaces in modular components. In this sample application, you will create a web application using Express and React to serve web pages in Node.js, complete with standard best practices, including a health check and application metric monitoring.

This app contains an opinionated set of components for modern web development, including:

* [React](https://facebook.github.io/react/)
* [Sass](http://sass-lang.com/)
* [Carbon](https://www.carbondesignsystem.com/)
* [Create React App](https://github.com/facebook/create-react-app)

#### Native Application Development

Install the latest [Node.js](https://nodejs.org/en/download/) 6+ LTS version.

Once the Node toolchain has been installed, you can download the project dependencies with:

```bash
npm install -g yarn
yarn install
```

##### Local development

To run application for local development and get live updates on code changes:

```sh
yarn start:dev
```

##### Test

To run unit tests:

```sh
yarn test
```

To run load test with k6:

```sh
# Ramp Virtual Users from 0 to 100 over 10s, stay there for 60s, then 10s down to 0
k6 run script.js -u 0 -s 10s:100 -s 60s:100 -s 10s:0
```

##### Run production build

To try a production build, run:

```sh
yarn build
yarn start
```