jedireza / frame

:bulb: A user system API starter
https://jedireza.github.io/frame/
MIT License
739 stars 156 forks source link

Database Migration Question #135

Closed entrptaher closed 8 years ago

entrptaher commented 8 years ago

Hi, Is there any good way to transfer database data between drywall, aqua and frame? I have a test website with around 50 accounts. If I want to move it into frame, do I have no way to transfer them? If I create something with frame and want to transfer the data to aqua, I see absolutely no way.
Do I have to create accounts manually? What about the passwords then?

Doing all of these because

Sorry for such bad English.

jedireza commented 8 years ago

Thanks for open an issue.

Is there any good way to transfer database data between drywall, aqua and frame? I have a test website with around 50 accounts. If I want to move it into frame, do I have no way to transfer them?

To my knowledge there isn't anything built already to help migrate the user system parts of the collections between Drywall and Frame (Aqua is Frame with a React front-end). The biggest difference between Drywall and Frame models is using hapi-mongo-models instead of mongoose. So depending on how heavily you use mongoose features, can/will make migrating more difficult.

If I create something with frame and want to transfer the data to aqua, I see absolutely no way.

These are practically the same thing in regards to the data models. Any changes would be very minor.

Do I have to create accounts manually? What about the passwords then?

I wouldn't move 50 accounts "manually", I'd definitely create a script to help so I could run it, fix it and try again. The passwords should be fine to just copy over, both systems use bcrypt to hash passwords.

Sorry for such bad English.

I didn't notice. 😉

Good luck. If you create something and you'd like to share, please update this thread.