https://github.com/diffcunha/nscaledemo-rtk
Node.js hello world application to run with rocket
https://github.com/diffcunha/nscaledemo-rtk
Last synced: 19 days ago
JSON representation
Node.js hello world application to run with rocket
- Host: GitHub
- URL: https://github.com/diffcunha/nscaledemo-rtk
- Owner: diffcunha
- Created: 2015-05-15T13:29:19.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-17T23:21:06.000Z (about 11 years ago)
- Last Synced: 2025-02-25T12:40:45.515Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#nscaledemo
Hello world project for nscale.
##overview
nscaledemo is a minimalist nscale sytem definition defining just one hello world web service and consists of the following files:
###system.js
```js
exports.name = 'nscaledemo';
exports.namespace = 'nscaledemo';
exports.id = 'e1144711-47bb-5931-9117-94f01dd20f6f';
exports.topology = {
development: {
root: ['web']
}
};
```
Defines the system namespace, name and id. Also defines a simple topology for local deployment.
#### definitions/services.js
```js
exports.root = {
type: 'blank-container'
};
exports.web = {
type: 'docker',
specific: {
repositoryUrl: 'git@github.com:nearform/nscaledemoweb.git',
execute: {
args: '-p 8000:8000 -d',
exec: 'node index.js'
}
}
};
```
Defines a root container and a web container to hold the hello world application.
###map.js
exports.types = {
local: {}
};
exports.ids = {
local: {
root: { id: '85d99b2c-06d0-5485-9501-4d4ed429799c' },
web: {name: 'web'},
}
};
Holds minimal id and name mapping for the web service container.
###generated files
The following files are generated and managed by nscale:
`.json` - compiled system definition, built from system.js and files underneath the services repo
# usage
Full instructions on how to build and run nscaledemo are available in the nscale workshops here: https://github.com/nearform/nscale-workshop