-
Notifications
You must be signed in to change notification settings - Fork 55
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
Hoodie Account Server: replace options.usersDb with options.PouchDB #52
Hoodie Account Server: replace options.usersDb with options.PouchDB #52
Comments
Hey! this is my first contribution. Can I have a try? |
sure! We invited you to this repository, you can accept the invitation here: https://github.com/hoodiehq/camp/invitations Once accepted, you can assign yourself and work off the check boxes. Let us know if you get stuck, or if you realise that it’s too hard after all, no problem :) good luck! |
I am opening up again for some one to grab this one. I need to work on a few more things before I can continue this issue. Open for any one! |
Can I try this one? |
Maybe give it a try and let us know how it goes? |
Sure~! I'll do that! |
Actually, I have no idea what to do.... |
I’m very sorry, I wish I could coach you trough this issue but I don’t have the time right now :( This issue really requires quite a bit of JavaScript / Node.js knowledge, it’s not well suited for beginners. But keep your eyes open, we plan to create more beginner-friendly issues over the next weeks |
So, now I'm trying to understand Node.js. actually, I have some knowledge about JS, but not Node.js. If I read documents of Node.js, where should I concentrate to contribute this issue? |
For this issue, you need to have good experience with Node.js, testing and code refactoring. You will also need to make yourself familiar with http://hapijs.com/ and https://pouchdb.com/. I’d start here: http://exercism.io/languages/javascript |
Okay I'll try it first and after if this issue is not suited for me, I'll lend it to the other contributors. |
I assigned it to me because we are doing some changes that will affect this issue, I’ll free it up if it’s still applicable after the change |
I think that's fine because I cannot handle with this right now. |
@Taekyoon I did it here if you want to check it out: hoodiehq/hoodie-account-server-api#2 |
Thanks! That would be helpful to study! |
🎃💻👕 Hacktoberfest: Trick or Treat!
If you haven’t yet, sign up for Hacktoberfest to earn an exclusive T-Shirt. Plus I’m sure we can teach you a cool trick or two in the process
🤔 What you will need to know
You should be experienced with JavaScript, Node.js and testing. Some knowledge about hapi.js will help, but won’t be required.
❓ The Motivation
Hoodie is very modular. Currently the options passed to the server modules are not coherent. For example, hoodie accepts
options.db
, hoodie-server acceptsoptions.PouchDB
and hoodie-account-server acceptsoptions.usersDb
. We want to normalise these options across all server modules.🎯 The goal
The server modules all interact with a database in one way or another, for which we use PouchDB. Currently,
hoodie-account-server
acceptsoptions.usersDb
which is a PouchDB instance, and then internally gets PouchDB from its constructor at plugin/index.js#L23. What we want instead is that the register functions defined inplugin/index.js
acceptsoptions.PouchDB
, and the users database should be initialised in there instead of outside of the plugin.📋 Step by Step
Please 🙏 only claim if you want to start working on it within a day.
Once claimed we add you as contributor to this repository.
In a nutshell: be patient and actively kind with us 😊
up for grabs
label within progress
.Setup the repository locally as described in tests/README.md (change the repository URL to your fork). Ensure the tests are all passing.
plugin/index.js
, make sure it passescloses hoodiehq/camp#52
in the description.If this is your first, welcome 🎉 😄 Here is a great tutorial on how to send a pull request using the terminal.
node_modules/.bin/tap tests/integration/api/accounts-test.js
in progress
label withready
. Ask in comments for a review :)🤔❓ Questions
Ping us in the Hoodie Chat or on Twitter
The text was updated successfully, but these errors were encountered: