[Add Keystone to Existing Apps] How to Utilize Existing Mongoose Models
See original GitHub issueBased on the instruction given in WIKI, I modified my app. Added this line to import my models defined.
keystone.imports('models')
Thing is, though I can access the keystone admin panel, I can’t see anything. The panel is empty, no model monitored there.
Should I do a list.register()
first to see it’s shown in the panel. If it is, then how I can register a well-defined Mongoose model, or must I rewrite the model in keystone’s List
style?
Regards.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:2
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Integrate keystone module to existing express and mongoose ...
1. Either bind the KeystoneJS middleware into your express configuration, or replace it with Keystone.start() · 2. Change your Mongoose Schema ...
Read more >How to integrated keystonejs in an existing express and ...
Check out the Wiki: How to add keystone to an existing Express app.
Read more >Data Modeling in Keystone.js - Syncfusion
Learn about defining models and adding relationships to model in the chapter "Data Modeling in Keystone.js" of Syncfusion Keystone.js free ...
Read more >@nicwong/keystonejs - npm
A simple way to create a dynamic web site or app with well-structured routes, templates and models · A beautiful Admin UI based...
Read more >Configuring KeystoneJS to Use MongoDB Atlas
KeystoneJS is an open source framework for building web applications and Content Management Systems. It's built on top of MongoDB, Express, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have the same question as @Plypy, we have an existing app with quite a large number of models which are shared amongst a number of ExpressJS apps, but I’d love to integrate Keystone’s Admin UI goodness.
We’ve got Keystone’s route working, but like the OP, there’s nothing in the Admin UI. A rewrite of our models into Keystone’s List based format wouldn’t be practical.
Is there a way to use our existing Mongoose models with Keystone’s Admin UI?
We’re closing all questions and support requests to keep the issue tracker unpolluted. Please ask this question on Stackoverflow or Gitter instead!