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
Netlify functions example #11892
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
fa7f196
without stripe
IslandRhythms 200668b
not entirely sure how to redirect
IslandRhythms 92787e8
Update checkout.js
IslandRhythms c9baa82
All thats left is checkout
IslandRhythms e865463
not done yet
IslandRhythms 062ca30
added checkout test
IslandRhythms d983d33
created fixtures
IslandRhythms ad97863
fix addToCart test
IslandRhythms e852249
fix getCart test
IslandRhythms a85e5a5
fix getProducts test and remove test data on test completion
IslandRhythms 9a8fad2
fix removeFromCart and removeFromCart test
IslandRhythms e89b2f9
almost done
IslandRhythms 0d2d299
sinon not doing sinon things
IslandRhythms 3c87f27
not getting sinon error messages
IslandRhythms 6dec0c5
thanks val
IslandRhythms b693176
Update index.js
IslandRhythms dfb75b4
add
IslandRhythms 115f9fa
need to fix tests
IslandRhythms 41712f1
tests fixed
IslandRhythms 28b5557
added dummy product script
IslandRhythms 42f40d5
made tests work with live build
IslandRhythms 118c97a
Merge branch 'master' into netlify-functions-example
vkarpov15 5301deb
fix: cleanup and various updates
vkarpov15 2e6b064
made requested changes
IslandRhythms eced2c7
Merge branch 'master' into netlify-functions-example
vkarpov15 2751883
fix tests
vkarpov15 File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,9 @@ | |
const mongoose = require('mongoose'); | ||
|
||
const productSchema = new mongoose.Schema({ | ||
productName: String, | ||
productPrice: Number | ||
name: String, | ||
price: Number, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Didn't update tests to reflect this change |
||
image: String | ||
}); | ||
|
||
const Product = mongoose.model('Product', productSchema); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👎 camelCase, no snake_case