mirror of
https://github.com/yldio/copilot.git
synced 2024-11-28 06:00:06 +02:00
chore(portal-api): add start script to support frontend
This commit is contained in:
parent
86b52a96f5
commit
9674394709
@ -8,7 +8,7 @@ Lead Maintainer: [Wyatt Preul](https://github.com/geek)
|
|||||||
## Example usage
|
## Example usage
|
||||||
|
|
||||||
```
|
```
|
||||||
NODE_ENV=dev node example
|
yarn start
|
||||||
```
|
```
|
||||||
|
|
||||||
Navigate to http://localhost:8000/graphiql to run graphQL queries. Navigate to http://localhost:8000/documentation for documentation on each route.
|
Navigate to http://localhost:8000/graphiql to run graphQL queries. Navigate to http://localhost:8000/documentation for documentation on each route.
|
||||||
|
@ -8,7 +8,12 @@ const Pack = require('./package');
|
|||||||
const Portal = require('./lib');
|
const Portal = require('./lib');
|
||||||
|
|
||||||
const server = new Hapi.Server();
|
const server = new Hapi.Server();
|
||||||
server.connection({ port: 8000 });
|
server.connection({
|
||||||
|
port: 3000,
|
||||||
|
routes: {
|
||||||
|
cors: true
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
const options = {
|
const options = {
|
||||||
info: {
|
info: {
|
||||||
|
@ -9,8 +9,9 @@
|
|||||||
"bootstrap": "node ./bootstrap-data",
|
"bootstrap": "node ./bootstrap-data",
|
||||||
"lint": "belly-button --fix",
|
"lint": "belly-button --fix",
|
||||||
"lint-ci": "belly-button",
|
"lint-ci": "belly-button",
|
||||||
"test": "lab -t 97",
|
"test": "lab -c",
|
||||||
"test-ci": "echo 0"
|
"test-ci": "echo 0",
|
||||||
|
"start": "node example.js"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "wyatt",
|
"author": "wyatt",
|
||||||
|
@ -44,7 +44,6 @@ describe('graphql', () => {
|
|||||||
expect(res.statusCode).to.equal(200);
|
expect(res.statusCode).to.equal(200);
|
||||||
const result = JSON.parse(res.result);
|
const result = JSON.parse(res.result);
|
||||||
expect(result.data).to.exist();
|
expect(result.data).to.exist();
|
||||||
expect(result.data.deploymentGroups).to.be.null();
|
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user