-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ElonMusk2002
committed
Jun 29, 2023
1 parent
bac291b
commit 267bcc5
Showing
28 changed files
with
663 additions
and
198 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Editor-specific files | ||
.DS_Store | ||
.vscode/ | ||
|
||
# Log files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Build output | ||
/dist/ | ||
|
||
# Node dependencies | ||
node_modules/ | ||
|
||
# dotenv environment configurations | ||
.env | ||
.env.test | ||
.env*.local | ||
|
||
# Caching files | ||
*.tmlanguage.cache | ||
*.tmPreferences.cache | ||
*.stTheme.cache | ||
*.sublime-workspace | ||
|
||
# Grunt and Bower package manager | ||
.grunt | ||
bower_components/ | ||
|
||
# npm and yarn cache | ||
.npm/ | ||
.yarn/ | ||
|
||
# ESLint cache | ||
.eslintcache | ||
|
||
# Stylelint cache | ||
.stylelintcache |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const mongoose = require('./db'); | ||
|
||
const cartItemSchema = new mongoose.Schema({ | ||
prodname: { type: String }, | ||
price: { type: Number }, | ||
description: { type: String }, | ||
image: { type: String }, | ||
quantityInStock: { type: Number }, | ||
quantityInCart: { type: Number } | ||
}); | ||
|
||
const CartItem = mongoose.model('CartItem', cartItemSchema); | ||
|
||
module.exports = CartItem; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Editor-specific files | ||
.DS_Store | ||
.vscode/ | ||
|
||
# Log files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Build output | ||
/dist/ | ||
|
||
# Node dependencies | ||
node_modules/ | ||
|
||
# dotenv environment configurations | ||
.env | ||
.env.test | ||
.env*.local | ||
|
||
# Caching files | ||
*.tmlanguage.cache | ||
*.tmPreferences.cache | ||
*.stTheme.cache | ||
*.sublime-workspace | ||
|
||
# Grunt and Bower package manager | ||
.grunt | ||
bower_components/ | ||
|
||
# npm and yarn cache | ||
.npm/ | ||
.yarn/ | ||
|
||
# ESLint cache | ||
.eslintcache | ||
|
||
# Stylelint cache | ||
.stylelintcache |
Oops, something went wrong.