Skip to content
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

Netlify functions example #11892

Merged
merged 26 commits into from Jul 20, 2022
Merged

Netlify functions example #11892

merged 26 commits into from Jul 20, 2022

Conversation

IslandRhythms
Copy link
Collaborator

Not done

Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bunch of comments. Also, let's add some test cases.

package.json Outdated Show resolved Hide resolved
examples/netlify-functions/models.js Outdated Show resolved Hide resolved
examples/netlify-functions/models.js Outdated Show resolved Hide resolved
examples/netlify-functions/models.js Outdated Show resolved Hide resolved
examples/netlify-functions/models.js Outdated Show resolved Hide resolved
@IslandRhythms IslandRhythms self-assigned this Jun 6, 2022
Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made a couple of quick changes, but still have a few more suggestions. But this is almost ready to go pending a couple of small fixes.

@@ -2,5 +2,7 @@

module.exports = Object.freeze({
mongodbUri: 'mongodb://localhost:27017/ecommerce',
stripeSecretKey: 'YOUR STRIPE KEY HERE'
stripeSecretKey: 'YOUR STRIPE KEY HERE',
success_url: 'localhost:3000/success',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👎 camelCase, no snake_case

productName: String,
productPrice: Number
name: String,
price: Number,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't update tests to reflect this change

Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gonna merge this and get it into mongoosejs/sample-apps for future work

@vkarpov15 vkarpov15 merged commit b8c99cf into master Jul 20, 2022
@vkarpov15 vkarpov15 deleted the netlify-functions-example branch July 20, 2022 15:38
hasezoey added a commit to hasezoey/mongoose that referenced this pull request Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants