Hosted in https://graviton-api.herokuapp.com/
Method | Endpoint | Description |
---|---|---|
GET | / | Get API information |
GET | /plugins/ | Get the whole list of plugin ids |
GET | /plugins/:pluginID | Get plugin info by it's id |
- Install all the dependencies
$ npm install
- Start the project in dev mode. This command will start a development server.
$ npm run dev
- Fork this repository.
git clone https://github.com/<YOUR USERNAME>/store-api.git
cd data
mkdir <PLUGIN-NAME>
cd <PLUGIN-NAME>
- Create a file called
manifest.yaml
. - In
manifest.yaml
put the following:
name: <PLUGIN-NAME>
id: <ID-FOR-PLUGIN>
author: <YOUR-NAME>
description: <DESCRIPTION>
repository: <LINK-TO-PLUGIN-REPO>
releases:
- version: <PLUGIN-VERSION>
minTarget: <MINIMUM-GRAVITON-VERSION>
target: <GRAVITON-VERSION>
url: <LINK-TO-PLUGIN-RELEASE-ZIP>
id, repository, url
: cannot contain whitespacereleases
is an array, so you can have multiple releases- To create a release for your plugin:
- On your plugin's repository homepage, create a release and upload a
.zip
folder with only functional files for the plugin - Once the release is published, copy the download-url, and release version of the release and paste into the
url
,version
fields above respectively.
- On your plugin's repository homepage, create a release and upload a
minTarget
will be the minimum version of Graviton(X.X.X
)target
will be a more specific target, you can for example use2
to target Graviton v2.X.X, or2.1
for v2.1.X
- Commit changes and create PR
- Get all your linting error (with ESlint)
$ npm run lint
- Fix all your linting error automatically (with ESlint)
$ npm run lint:fix
To run the tests, run:
$ npm test
- Install all the dependencies
$ npm install
- Start the project in production mode.
$ npm run start