Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Improve tessellate-server #52

Merged
merged 10 commits into from
Feb 1, 2017
Merged

Improve tessellate-server #52

merged 10 commits into from
Feb 1, 2017

Conversation

mfellner
Copy link
Contributor

Improve tessellate-server in preparation for #37.

  • Use latest koa-router-rx
  • Add convenience methods to nconf and export
  • Export Problem class
  • Add bodyparser
  • Improve flow typings
  • Add tests

Maximilian Fellner added 9 commits January 31, 2017 17:49
affects: tessellate-server
affects: tessellate-server
affects: tessellate-server
affects: tessellate-server
affects: tessellate-server
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling e99fb6e on 37-improve-server into ** on master**.

Copy link
Contributor

@semonte semonte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Could you provide a README on how to use tessellate-server and what is its purpose? Or do you prefer a new ticket for that?


this.app
.use(morgan(morganFormat, {skip: morganSkip}))
.use(error)
.use(error())
.use(bodyParser({enableTypes: ['json'], strict: true}))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strict already has a default value of true, we should keep configuration at minimum.


const [appServer, metricsServer] = await Promise.all([
startServer(this.app.callback(), port),
startServer(this.metrics.callback(), metricsPort)
startServer(this.app.callback(), parseInt(port)),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should extract parseInt(port) as a constant

@mfellner
Copy link
Contributor Author

mfellner commented Feb 1, 2017

@semonte @danpersa Added documentation and requested changes.

affects: tessellate-server
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 21c7948 on 37-improve-server into ** on master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 21c7948 on 37-improve-server into ** on master**.

@mfellner mfellner merged commit d8a0f00 into master Feb 1, 2017
@mfellner mfellner deleted the 37-improve-server branch February 1, 2017 13:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants