Skip to content

Commit

Permalink
#EDU-1 - Updating NPM packaging configuration ; Adding Node global va…
Browse files Browse the repository at this point in the history
…riable configuration for package dependecy support ; Updating VSCode project name ; Attempting to re-fix CircleCI breakage
  • Loading branch information
HolimaX committed Dec 23, 2020
1 parent fdff16b commit 0b85c24
Show file tree
Hide file tree
Showing 12 changed files with 2,811 additions and 3,654 deletions.
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ jobs:
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "./system/package.json" }}
- v1-dependencies-{{ checksum "./package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: cd system && yarn install
- run: yarn install

- run: cd system && npm run build
- run: npm run build

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "./system/package.json" }}
key: v1-dependencies-{{ checksum "./package.json" }}

# run tests!
- run:
Expand All @@ -46,4 +46,4 @@ jobs:
echo $EXIT_CODE
- store_artifacts:
path: ./system/build
path: ./build
4 changes: 3 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
NODE_PATH=src/
PORT=3010
SKIP_PREFLIGHT_CHECK=true
VERSION=0.1.2
REACT_APP_VERSION=${FULLVERSION}
VERSION=${REACT_APP_VERSION}
REACT_APP_AUTHPROVIDERCID=${AUTHPROVIDERCID}
20 changes: 15 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ This project:

- was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
- was forked from original source to further be used as template for developments (like https://github.com/HolimaX/libhacontimig)
- was ajusted to include integration with technologies (like Terraform, Ansible, Kubernetes), mentioned in github topics and can be seen in README.md files within folders. For more details, see ```https://github.com/HolimaX/React/blob/<branch>/src/README.md``` file as one of such inclusives. React-based Application is still kept isolated to ensure overall integrity and transaprency.
- was ajusted to include integration with technologies (like Terraform, Ansible, Kubernetes), mentioned in github topics and can be learned about in README.md files within folders. For more details, see ```https://github.com/HolimaX/React/blob/<branch>/src/README.md``` file as one of such inclusives. React-based Application is still kept isolated to ensure overall integrity and transaprency.

## Application Prerequistes

You can establish environment in many ways. For example:
- In order for this React app to be started, the valid Okta connection is needed. Configuration is set up during registration phase from connected Cloud Dashboard tools (like Android Phone app).
- In order for this React app to be served w/o 'serve' tool, you need to install either Apache or NGNIX (but not both!) within non-control-plane (Master) node. Then, production build must be made and serving can be executed.
- In order for this React app to be served w/o 'serve' tool, you need to install either Apache or NGNIX (but not both!) within non-control-plane (Master) node. Then, production build via ```npm build``` must be made and serving can be executed.

## Available Scripts

Expand Down Expand Up @@ -60,9 +60,10 @@ Instead, it will copy all the configuration files and the transitive dependencie
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

### Authentication

For compatible Products with designated type (like "Pro"/"Premium"):

- Release 1 supports OAth based authentication, as explained in https://medium.appbase.io/how-to-implement-authentication-for-your-react-app-cf09eef3bb0b
- Release 1 supports OAuth 2.0 based authentication, as explained in https://medium.appbase.io/how-to-implement-authentication-for-your-react-app-cf09eef3bb0b

## Learn More

Expand Down Expand Up @@ -95,6 +96,15 @@ This section has moved here: https://facebook.github.io/create-react-app/docs/de
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

## Integrations
The supported method is via C-style header SO libraries. See https://medium.com/learning-the-go-programming-language/calling-go-functions-from-other-languages-4c7d8bcc69bf for details. Note that only CircleCI is building the header files.

As of now, the pod configuration is adjusted in case there is incoming function call from integrated applications. This implementation is not aimed to push changes, but 'pull' instead.
To use Node REPL and see available functionality, you can execute following command: ```node beerbank```

### Internal (REST API based) integrations

You can use internal REST API based logic for incoming calls handling for Infrastructure integrated applications. The logic consits of Auto-Synchronization, Auto-Notification and Auto-Configuration management for Pro ("Premium") modules.

Also, The supported method for advanced integration is via C-style header SO libraries. See https://medium.com/learning-the-go-programming-language/calling-go-functions-from-other-languages-4c7d8bcc69bf for details.

**Note: Only CircleCI is building the header files.**

As of now, the infrastructure automation (kubernetes pod) configuration is adjusted in case there is incoming function call from integrated applications. This implementation is not aimed to ```'push'``` changes, but ```'pull'``` instead.
File renamed without changes.
Loading

0 comments on commit 0b85c24

Please sign in to comment.