0 码力 |
129 页 |
1.37 MB
| 1 年前 3
............................................................................................ 3 NODEJS and NPM Installation ........................................................................... is supported by javascript and also with typescript. Few examples are Angular, ReactJS, Vuejs, nodejs etc. RxJS is an awesome library when it comes to the handling of async tasks.RxJS uses observables the following setup: NodeJS Npm RxJS package installation NODEJS and NPM Installation It is very easy to install RxJS using npm. You need to have nodejs and npm installed on your system
0 码力 |
106 页 |
1.56 MB
| 1 年前 3
............................................................................................ 6 NodeJS ................................................................................................ work with BabelJS we need following setup: ● NodeJS ● Npm ● Babel-CLI ● Babel-Preset ● IDE for writing code NodeJS To check if nodejs is installed on your system, type node –v in the version of nodejs currently installed on your system. If it does not print anything, install nodejs on your system. To install nodejs, go to the homepage https://nodejs.org/en/download/ of nodejs and install
0 码力 |
173 页 |
2.70 MB
| 1 年前 3
version of Node.js installable archive file from Node.js Downloads, which is available at https://nodejs.org/download/. At the time of writing this tutorial, the versions available on different OS are /usr/local/nodejs directory. For example: $ cd /tmp $ wget http://nodejs.org/dist/v6.3.1/node-v6.3.1-linux-x64.tar.gz $ tar xvfz node-v6.3.1-linux-x64.tar.gz $ mkdir -p /usr/local/nodejs $ mv mv node-v6.3.1-linux-x64/* /usr/local/nodejs Add /usr/local/nodejs/bin to the PATH environment variable. OS Output Linux export PATH=$PATH:/usr/local/nodejs/bin 2. Angular CLI — Environment Setup
0 码力 |
64 页 |
1.04 MB
| 1 年前 3
中指定与任务参数关联的所有可能环境变量。这样做可以减少磁盘 I/O 并提高 Jenkins 处理期间的性能。 5.4.4. Pipeline 构建教程 本例演示如何创建 OpenShift Pipeline,以使用
nodejs-mongodb.json 模板构建、部署和验证 Node.js/MongoDB 应用程序。 jenkinsPipelineStrategy: ... env: - name: "FOO" 选择要使用的项目,或使用 oc new-project
创建一个新项目。 如果要使用持久性存储,请改用 jenkins-persistent。 2. 使用以下内容,创建名为 nodejs-sample-pipeline.yaml 的文件: 注意 注意 这将创建一个 BuildConfig,它将使用 Jenkins Pipeline 策略来构建、部署和扩展 Node.js/MongoDB BuildConfig 中包含内联内容,但首选的方法是使用源存 储库中的 jenkinsfile。 kind: "BuildConfig" apiVersion: "v1" metadata: name: "nodejs-sample-pipeline" spec: strategy: jenkinsPipelineStrategy: jenkinsfile: 0 码力 |
101 页 |
1.12 MB
| 1 年前 3
myproject $ oc new-app nodejs:12~https://github.com/sclorg/nodejs-ex.git $ oc get svc -n myproject NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE nodejs-ex ClusterIP 172.30 service nodejs-ex route.route.openshift.io/nodejs-ex exposed $ oc get route NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD nodejs-ex nodejs-ex-myproject nodejs-ex-myproject.example.com nodejs-ex 8080-tcp None $ curl --head nodejs-ex-myproject.example.com HTTP/1.1 200 OK ... # cat router-internal.yaml apiVersion: v1 items: - apiVersion:
0 码力 |
256 页 |
2.78 MB
| 1 年前 3