Stable
Run the command npm install
to get the latest packages
[note that this is not set in config file. This has to be in environment variables]
- GREG_DB_NAME - Database name.
- GREG_DB_URL - mongodb URL
- accessKeyId - AWS access key
- secretAccessKey - AWS secret key.
- NODE_ENV - Node Environment [dev / production]
- GREG_USE_OXYGEN - specify true or false. if false, basic authentication will be used.
- PORT - Port where the server will run. default: 8080
- OXYGEN_VALIDATION_URL - Validation URL for oxygen authentication
Once the enviornment variables are set, run node app.js
All requests from the database are returned in JSON format with the following format:
{
success: Boolean,
timestamp: ms since the Unix epoch,
contents: {
... If success, whatever it is you requested ...
}
}
This returns the terms of use acceptance status for the current authenticated user. If the user is not found, this API returns false
for accepted
field:
{
user_id: String,
accepted: Boolean
}
This returns all of the package headers in the database.
This also returns all of the package headers in the database.
This returns the unique package header associated with that [id].
Returns all the packages with the given engine name. (e.g. "dynamo" or "designscript")
Returns the single package with the given engine name ([engine]) and package name ([name]). This is guaranteed to be a single unique package.
Returns the list of packages returned by keyword search ([query]) over the packages
####/pkg_search/[query] Returns the of packages returned by keyword search ([query]) over the packages
Posts a new package. Requires an oauth authorization header validated from Oxygen.
Updates the terms of use acceptance status for the current authenticated user to true
. If the call is successful, the following data is returned:
{
user_id: String,
accepted: Boolean
}
Posts a new package version. Requires an oauth authorization header validated from Oxygen.
Votes for a package. Only increments if the user is authorized and never voted for the package before.
White-listing is used primarily in the context of Reach. When a package is white-listed, it will be downloaded and made available to Reach instances.
Add a package to the white list.
Remove a package from the white list.
Get all packages on the white list.
- To start the server
./start-server
- To stop the server
./stop-server
All the required keys for GDPR is in S3. contact dynamo.reach@autodesk.com
for details.
The package manager ./start-server
script uses foreverjs. It is configured to write three log files to /logs
, ERR
,OUT
, and LOG
. These log files are rotated weekly using logrotate. The logrotate configuration file, and a cron job for running logrotate can be found in /logrotate
.
V4.4.7 LTS (Recommended for most users at https://nodejs.org/en/)