question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Add Keystone to Existing Apps] How to Utilize Existing Mongoose Models

See original GitHub issue

Based 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:closed
  • Created 8 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
shaondcommented, Jul 27, 2015

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?

0reactions
mxstbrcommented, Apr 29, 2016

We’re closing all questions and support requests to keep the issue tracker unpolluted. Please ask this question on Stackoverflow or Gitter instead!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found