An open API service indexing awesome lists of open source software.

https://github.com/graviton-code-editor/store-api

💫 Graviton Store API
https://github.com/graviton-code-editor/store-api

api eslint express-js graviton hacktoberfest javascript js node

Last synced: 3 months ago
JSON representation

💫 Graviton Store API

Awesome Lists containing this project

README

        

# 🎡 Graviton Store's API

Hosted in https://graviton-api.herokuapp.com/

## 📖 Usage:

| 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 |

## 🛠️ Development

1. Install all the dependencies
```sh
$ npm install
```

2. Start the project in dev mode. This command will start a development server.
```sh
$ npm run dev
```
## 🔌 Publishing Plugins
1. Fork this repository.
2. `git clone https://github.com//store-api.git`
3. `cd data`
4. `mkdir `
5. `cd `
6. Create a file called `manifest.yaml`.
7. In `manifest.yaml` put the following:
```yaml
name:
id:
author:
description:
repository:
releases:
- version:
minTarget:
target:
url:
```
##### About the yaml information above
* `id, repository, url`: __cannot__ contain whitespace
* `releases` is an array, so you can have multiple releases
* To create a release for your plugin:
1. On your plugin's repository homepage, create a release and upload a `.zip` folder with only functional files for the plugin
2. Once the release is published, copy the download-url, and release version of the release and paste into the `url`, `version` fields above respectively.
* `minTarget` will be the minimum version of Graviton(`X.X.X`)
* `target` will be a more specific target, you can for example use `2` to target Graviton v2.X.X, or `2.1` for v2.1.X
8. Commit changes and create PR

## 🎎 Contributing
#### Before commiting on git

* Get all your linting error (with ESlint)
```sh
$ npm run lint
```

* Fix all your linting error automatically (with ESlint)
```sh
$ npm run lint:fix
```

## 🧦 Tests

To run the tests, run:
```shell
$ npm test
```

## 💾 Production

1. Install all the dependencies
```sh
$ npm install
```

2. Start the project in production mode.
```sh
$ npm run start
```

## Contributors 🤠
LucasAlt [Github](https://github.com/LucasCtrl)
David Niederweis [Github](https://github.com/DJN1)