1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-14 07:10:05 +02:00

Updating setup

This commit is contained in:
Tom Gallacher 2016-10-10 17:38:58 +01:00
parent 77c4c24d3a
commit 27068b77e6
3 changed files with 21 additions and 9 deletions

View File

@ -16,4 +16,4 @@ We will also include multiple PoC's of various bits of functionality from UI's p
### triton-graphql ### triton-graphql
An implementation of the triton API's in GraphQL. An implementation of the [Joyent CloudAPI](https://apidocs.joyent.com/cloudapi/) in GraphQL.

View File

@ -2,15 +2,11 @@
Proof-of-Concept of the Triton API running on GraphQL. Proof-of-Concept of the Triton API running on GraphQL.
### install dependencies ## Setup
```bash ### Setup Credentials
$ npm install
```
### setup credentials Create `credentials.json`, TODO, use environment variables.
Edit `credentials.json`
```json5 ```json5
{ {
@ -21,7 +17,20 @@ Edit `credentials.json`
} }
``` ```
## api ### Install Dependencies and run
```bash
npm install
npm start
```
### Visit GraphiQL
Go-to http://0.0.0.0:3000/graphql to use the REPL with interactive documentation.
![GraphiQL](https://cloud.githubusercontent.com/assets/524382/19242455/1e371978-8f0b-11e6-9563-d6f5b93fa63c.png)
## API
- [x] Account - [x] Account
- [x] GetAccount - [x] GetAccount

View File

@ -4,6 +4,9 @@
"license": "Apache-2.0", "license": "Apache-2.0",
"version": "1.0.0", "version": "1.0.0",
"main": "src/index.js", "main": "src/index.js",
"scripts": {
"start": "node src/index.js"
},
"dependencies": { "dependencies": {
"bunyan": "^1.8.1", "bunyan": "^1.8.1",
"express": "^4.14.0", "express": "^4.14.0",