Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

How to configure a connection MongoDB #29

Closed
gcasari opened this issue Nov 15, 2016 · 2 comments
Closed

How to configure a connection MongoDB #29

gcasari opened this issue Nov 15, 2016 · 2 comments

Comments

@gcasari
Copy link

gcasari commented Nov 15, 2016

Hello I'm starting to use ng-admin-demo. I want to know how to configure and customize a connection to the datasource mongodb instead of connecting to data.js. There are examples of this? Thanks

@gcasari gcasari changed the title How to configure a connection to MongoDB How to configure a connection MongoDB Nov 15, 2016
@fzaninotto
Copy link
Member

I'm afraid you're looking at the wrong repo. Head to marmelab/ng-admin, where everything is explained. In particular, the datasource for ng-admin MUST be a REST API. Whether you use mongoDB or another persistence for this API is outside of ng-admin-s scope.

ng-admin-demo uses a trick to avoid relying on a server for the API - but it's just for the purpose of the demo. Don't look at data.js as an example of REST API connection.

@gcasari
Copy link
Author

gcasari commented Nov 15, 2016

Ops ... thanks a lot, I did not see the repo ng-admin. Now I see it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants