GithubHelp home page GithubHelp logo

Comments (5)

arnaudbesnier avatar arnaudbesnier commented on July 20, 2024 1

The new option will be:

app.use(require('forest-express-mongoose').init({
    modelsDir: __dirname + '/models',  // Your models directory.
    configDir: __dirname + '/my/forest/custom/directory',  // Your Forest Smart implementation directory.
    envSecret: config.forest.env_secret,
    authSecret: config.forest.auth_secret,
    mongoose: mongoose // The database connection.
}));

from forest-express-mongoose.

SeyZ avatar SeyZ commented on July 20, 2024

Hey @GautierT

Thanks for your issue! Can you check if your collection name (not your mongoose model name) is users?

You're right, you don't have to require the file manually.

from forest-express-mongoose.

arnaudbesnier avatar arnaudbesnier commented on July 20, 2024

@GautierT any news on this issue?
Did you eventually manage to customize your users collection?

from forest-express-mongoose.

GautierT avatar GautierT commented on July 20, 2024

Yes but with a workaround thanks to a skype with @SeyZ.
The problem is the same that in this issue : ForestAdmin/forest-express#6
And i still can't put my admin to production because of this.

from forest-express-mongoose.

arnaudbesnier avatar arnaudbesnier commented on July 20, 2024

The feature is now in code review and will be released soon.

from forest-express-mongoose.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.