This is a simple implementation of the OpenNebula Marketplace, without
the need of having the heavyweight OpenNebula installation with the database.
All information about appliances is taken from the set of metadata YAML files,
which are deployed into the src/data/ directory.
Metadata used by official public OpenNebula Marketplace are in dedicated repository.
Dependencies:
To start, you need to download the JavaScript dependencies. This can be achieved achieved by running the command yarn inside the directory src/public/react.
Most requests on the API are managed by the Ruby backend, only the routes /marketplace/* are managed by React in the file src/public/react/src/routes.js.
- Comment line 2 and uncomment line 1 to
src/public/react/src/constants/endpoints.js. - Run in
src/public/reactpath the commandyarn start.
NOTE: All the graphic fonts used in it will fail, only use to prove with the information that is in production.
- Validate that line 2 is uncomment and line 1 is comment to
src/public/react/src/constants/endpoints.js. - Run in
src/public/reactpath the commandyarn build.
Once the production build is created, you only need to run
$ bundle exec rackup