-
-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace home-made packages (e.g. my/http
...) with standard ones (e.g. express.js)
#122
Open
3 of 5 tasks
Labels
Comments
Hapi could be a secure alternative to Express, cf https://hueniverse.com/why-you-should-consider-hapi-6163689bd7c2 E.g. I like the fact that "Server load is protected by default with payload limits and request timeouts" |
adrienjoly
added a commit
that referenced
this issue
Jun 29, 2019
…go (#200) Contributes to #122 and #55. What does this PR do / solve? ----------------------------- Openwhyd was developed on top of a custom / home-made web framework called "my-http". In order to standardise it and reduce tech debt, we intend to migrate to Express.js. This PR is a first step towards that goal: it replaces the custom "my-session" middleware by a more standard combination: [connect-mongo](https://www.npmjs.com/package/connect-mongo) and [express-session](https://www.npmjs.com/package/express-session). Overview of changes ------------------- See [list of commits](https://github.com/openwhyd/openwhyd/pull/200/commits) for more details.
adrienjoly
pushed a commit
that referenced
this issue
Jun 29, 2019
adrienjoly
pushed a commit
that referenced
this issue
Jul 3, 2019
adrienjoly
added a commit
that referenced
this issue
Jul 3, 2019
Contributes to #122. Openwhyd has been running on a legacy / home-made web framework, which can be a turn-off for potential contributors who are used to Express.js As a third step of the migration explained in #122, this PR consists of removing the legacy "glue" code from `my/http` from the Express.js wrapper.
adrienjoly
pushed a commit
that referenced
this issue
Jul 3, 2019
This was referenced Jul 14, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
EDIT: Updated on 2019-06-29, Next Steps:
my/session
toexpress-session
andconnect-mongo
(PR refact(api): migrate from my/session to express-session and connect-mongo #200)my-http-wrapper
that builds upon express.js + get rid ofmy/http
: PR feat(back-end): migrate from "my/http" to Express.js #201 (merged)my/http
-compliant endpoint handlers by express.js-compliant handlerslibs
EDIT: Updated on 2019-03-30:
Most important package to replace:
my/http
, a home-made alternative to Express.js (web framework) that we've developed just for Whyd/Openwhyd. Routes are defined in /config/app.route and server init is done in /app.js.Why move to Express.js? Because it's been the most popular web framework for Node.js, hence it became a de-facto standard.
Also it would enable us to:
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: