New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Saas Boilerplate (book #2) - postgresql? PostgreSQL sequelize #45
Comments
@drewdt1 Thanks for feedback. No plans for now. EDIT: No PostgreSQL in the book, only MongoDB. |
It's a pretty trivial change. I've done it on quite a few projects using this boilerplate. I used sequelize, replaced the mongodb models with sequelize models, and then you need to configure express-session with the sequelize plugin. Something like this in app.ts:
and a models/Session.ts file would like something like this
You'll also need to update consts.ts to parse the new envars. There are no changed required in the app app just api app. |
@dubvfan87 Nice. Would you like to update current README with all details? You are welcome to create a new section |
@dubvfan87 good stuff. thank you very much! |
@tima101 Do you think it makes sense to add? This doesn't cover converting things like creating new Sequelize models, because I stripped the repo down to a barebones state before I did the conversion. It may help folks get on the right track though. |
@dubvfan87 Provides direction. It could be very detailed if you think it saves people time. |
Love the premise. Do your books provide instruction for setting up the boilerplate code with a postgresql db (in opposition to mongodb)?
Click to see Hill for issue #45
Click to see Hill for all issues
created by Async
The text was updated successfully, but these errors were encountered: