-1

How do I move the "User" model to the database? I read the documentation on their official website, it's all about interacting with the User model on local?

cjskywalker
  • 3,285
  • 2
  • 16
  • 16
  • so you want to create corresponding table in database for User model? and your database is sql-based? – xangy Oct 27 '15 at 06:00
  • yes, I can easily follow the instruction from the official documentation. It works perfectly on the local ds (in-memory), how am I be able to store the same User model on the sql database. – cjskywalker Oct 27 '15 at 15:51
  • This question is too broad. You have to install appropriate connector for your database. After that you need to create datasource and connect your model to it. Documentation covers this very well with step by step instructions. See: https://docs.strongloop.com/display/public/LB/datasources.json and https://docs.strongloop.com/display/public/LB/Creating+a+database+schema+from+models to migrate your data. – A.Z. Oct 27 '15 at 20:13

1 Answers1

0

I got it, I just need to create the datasource and change the model-config.json file and change the datasource to my database.

cjskywalker
  • 3,285
  • 2
  • 16
  • 16