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
|
||||
|
||||
```
|
||||
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.
|
||||
|
@ -8,7 +8,12 @@ const Pack = require('./package');
|
||||
const Portal = require('./lib');
|
||||
|
||||
const server = new Hapi.Server();
|
||||
server.connection({ port: 8000 });
|
||||
server.connection({
|
||||
port: 3000,
|
||||
routes: {
|
||||
cors: true
|
||||
}
|
||||
});
|
||||
|
||||
const options = {
|
||||
info: {
|
||||
|
@ -9,8 +9,9 @@
|
||||
"bootstrap": "node ./bootstrap-data",
|
||||
"lint": "belly-button --fix",
|
||||
"lint-ci": "belly-button",
|
||||
"test": "lab -t 97",
|
||||
"test-ci": "echo 0"
|
||||
"test": "lab -c",
|
||||
"test-ci": "echo 0",
|
||||
"start": "node example.js"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "wyatt",
|
||||
|
@ -44,7 +44,6 @@ describe('graphql', () => {
|
||||
expect(res.statusCode).to.equal(200);
|
||||
const result = JSON.parse(res.result);
|
||||
expect(result.data).to.exist();
|
||||
expect(result.data.deploymentGroups).to.be.null();
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user