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.gitcd datamkdir <PLUGIN-NAME>cd <PLUGIN-NAME>- Create a file called
manifest.yaml. - In
manifest.yamlput 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 whitespacereleasesis 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
.zipfolder 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,versionfields above respectively.
- On your plugin's repository homepage, create a release and upload a
minTargetwill be the minimum version of Graviton(X.X.X)targetwill be a more specific target, you can for example use2to target Graviton v2.X.X, or2.1for 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:fixTo run the tests, run:
$ npm test- Install all the dependencies
$ npm install- Start the project in production mode.
$ npm run start