gothinkster / realworld

"The mother of all demo apps" — Exemplary fullstack Medium.com clone powered by React, Angular, Node, Django, and many more
https://realworld-docs.netlify.app/
MIT License
80.65k stars 7.34k forks source link

Feathers #339

Closed randyscotsmithey closed 5 years ago

randyscotsmithey commented 5 years ago

Hi,

I've created a Feathers backend implementation at: https://github.com/randyscotsmithey/feathers-realworld-example-app.git. This implementation depends on Node, Express, and MongoDB.

Everything works with the Postman collection and I've tested with the Elm frontend as well.

Includes a test suite with some tests implemented and others just stubbed out.

anishkny commented 5 years ago

This looks awesome @randyscotsmithey I tried it out locally but having some issues:

npm i
docker run -p 27017:27017 mongo &
export MONGODB_FEATHERS_REALWORLD=mongodb://mongo:27017
npm start

info: mongodb://mongo:27017
info: Feathers application started on http://localhost:3030
error: Unhandled Rejection at: Promise  {"meta":[{},{"name":"MongoNetworkError","errorLabels":["TransientTransactionError"]}]}

And the API does not return (e.g. http://localhost:3030/api/articles), any ideas how to make this work?

Also, it would be great if you could setup some cloud CI service (Travis/Circle/Azure)!

randyscotsmithey commented 5 years ago

Hi @anishkny, Thanks for looking at this. Try changing the export to: export MONGODB_FEATHERS_REALWORLD=mongodb://127.0.0.1:27017/testdb (where 'testdb' will be the database name and can actually be anything you want) That seems to do the trick for connecting to the docker mongoDB. Also, I added a .travis.yml file and that seems to be working now, but Travis is new to me.

anishkny commented 5 years ago

Yup worked for me. Sent a PR with new logo and some badges. Great work!

LGTM @Cameron-C-Chapman

Cameron-C-Chapman commented 5 years ago

This has been added to the README. Nice work @randyscotsmithey!