I am new in loopback,
I trying to work user models like register,login. I followed this url - https://github.com/strongloop/loopback-example-user-management
Its working good but its working without postgres database.
I added the code datasoruces.json.
{
"db": {
"name": "db",
"connector": "memory"
},
"mydata": {
"postgres": {
"host": "localhost",
"port": "5432",
"database": "myapps_login",
"username": "postgres",
"password": "password",
"name": "postgres",
"debug": true,
"connector": "postgresql"
}
}
How can I access user model using database?