Skip to content

Main #11

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

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open

Main #11

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
26 changes: 26 additions & 0 deletions .firebase/hosting.ZG9jcw.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
favicon.ico,1660828082318,2c19690e9587bae12f419b34d2edeecc76808099540a9c9f4ea6194116cfc8f7
manifest.webmanifest,1660828082319,66ed6404eb7baf5e8ba80973a616f94d4f4331da3d37f3d4effe7013bd7367b1
ngsw-worker.js,1661523084352,c5e11e177c7de04a4db6e954506543d876e67f2886ef4551538b160a703b97ab
safety-worker.js,1661523084655,c6b39c5706f2a5d51e9a5de484c7aa0fdb06444572c7544f92a21fd16620ebf7
worker-basic.min.js,1661523084655,c6b39c5706f2a5d51e9a5de484c7aa0fdb06444572c7544f92a21fd16620ebf7
assets/beep.wav,1660828082309,0b346059e31420002ba5b38b38a095228912044bad69614c20c869517b6d860c
assets/classy_crab_blue.png,1660828082310,83ef3107b8c943e266c79eca101b3d1e882f598b0150caf5430b4f5068f1d52a
assets/classy_crab_gold.png,1660828082310,9da4486f7c5171f2e9714879f785c4fca23b29f1d720c398d8af6f8ee91c89d5
assets/classy_crab_red.png,1660828082311,9e7c98bea7bc906535384e80f02d2d6a7a400fde71bdfdeea843c6120d4a2ae3
assets/classy_crab_unknown.png,1660828082311,4b664a495f145ac93f7b4936ae09a055d9dad8551d8da2897db7baf28f282c4b
assets/icons/icon-128x128.png,1660828082312,c4a6e8492f5d9303fb06579978d52957f335f6f20d7c71394f380b8964902b26
assets/icons/icon-144x144.png,1660828082312,e57a1cde4ed818d01954965cb8e1e09929e22cacc5a2ade633b86242fcbbd22a
assets/icons/icon-152x152.png,1660828082313,5f159fd8d169264652f59405d385e7fd2ddfa9076a59e20d4c6a8fa0c9e182eb
assets/icons/icon-192x192.png,1660828082313,256392c8b83edbc22be50ec8da5330ef2ae0615c75014a1f509595c546b20648
assets/icons/icon-384x384.png,1660828082314,91030c1ff6a5dc999bf1ad63e7514c2d02d256700e94068954ef7555673d126e
assets/icons/icon-512x512.png,1660828082315,d14679132f5ed62891102502a9e16daf66e5d54b2f0ed6140779a05f79af967d
assets/icons/icon-72x72.png,1660828082315,0f19bfbca9a93e2548b403d9abb25ecdc1ebc069d023de7f81cf44c9965cc0ac
assets/icons/icon-96x96.png,1660828082316,eac1e605faa0211b12a189a89332096f15b6d69cd9ce1eaa68702750fa4af11b
ngsw.json,1661699943813,7b1f81830f3507ac5f19dacbdf2ca20b1c18f17cc986031ba0ba608fcca0f72d
runtime.0f056e590c45ddd9.js,1661699943709,db17e5cce5862b3fe578ae950fce56c2f58ab19ff88a4816ddade02ff1489435
index.html,1661699943787,7528fb5704595504b3cb69674e5f985800c4c89d494f5496b6642b219dc44d86
styles.186c8db44232dde1.css,1661699943709,b91e18e9b5a0b4776c9b557eba94e5d117f8ddb96cfb2d9e47358c13655dbde5
assets/cafea.jpg,1661699890828,4df450403db542ff5d74197ac8c6eb1dec17e57d5ad91a2f95ef6532a0af5fd9
3rdpartylicenses.txt,1661699943709,4ff135abcd72d207de92f94cc4b6a22ac49e3e2030e29d75988fcff553eea8ba
polyfills.5990fc78f4dc9bba.js,1661699943708,9ef147dbae2af51b6d367b17f28075a21d4529d1213c41a88b9c08601d7d1e1b
main.e9c39798f82e5d29.js,1661699943708,616c0c04745eb1fbdfa21a5478c678577a8a4b08c51b563189f5a969dba5bc4e
15 changes: 15 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"projects": {
"default": "pwa-gabi"
},
"targets": {
"pwa-gabi": {
"hosting": {
"mobile-scanning-demo": [
"pwa-gabi"
]
}
}
},
"etags": {}
}
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
# /dist
/tmp
/out-tsc
# Only exists if Bazel was run
Expand Down Expand Up @@ -44,3 +44,8 @@ testem.log
# System Files
.DS_Store
Thumbs.db

# Firebase
.firebase
*-debug.log
.runtimeconfig.json
Binary file modified README.md
Binary file not shown.
19 changes: 17 additions & 2 deletions angular.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"cli": {
"analytics": "8bed89a9-45cd-4d3c-ad75-f9afc7c36afe"
},
"version": 1,
"newProjectRoot": "projects",
"projects": {
Expand All @@ -20,7 +23,7 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/mobile-scanning-demo",
"outputPath": "docs",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
Expand All @@ -32,6 +35,7 @@
"src/manifest.webmanifest"
],
"styles": [
"./node_modules/@angular/material/prebuilt-themes/purple-green.css",
"src/styles.scss"
],
"scripts": [],
Expand Down Expand Up @@ -103,13 +107,24 @@
"src/manifest.webmanifest"
],
"styles": [
"./node_modules/@angular/material/prebuilt-themes/purple-green.css",
"src/styles.scss"
],
"scripts": []
}
},
"deploy": {
"builder": "@angular/fire:deploy",
"options": {
"prerender": false,
"ssr": false,
"browserTarget": "mobile-scanning-demo:build:production",
"firebaseProject": "pwa-gabi",
"firebaseHostingSite": "pwa-gabi"
}
}
}
}
},
"defaultProject": "mobile-scanning-demo"
}
}
12 changes: 12 additions & 0 deletions api/DB.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// DB.js

// module.exports = {
// DB: 'mongodb://localhost:27017/ng7crud'
// };




module.exports = {
DB: 'mongodb+srv://Riv:[email protected]/?retryWrites=true&w=majority'
};
2 changes: 2 additions & 0 deletions api/Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
web:node server.js

24 changes: 24 additions & 0 deletions api/models/Business.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Business.js

const mongoose = require('mongoose');
const Schema = mongoose.Schema;

// Define collection and schema for Business
let Business = new Schema({
name: {
type: String
},
ean: {
type: String
},
image: {
type: String
},
price: {
type: Number
}
},{
collection: 'pwa'
});

module.exports = mongoose.model('Business', Business);
12 changes: 12 additions & 0 deletions api/node_modules/.bin/mime

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions api/node_modules/.bin/mime.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions api/node_modules/.bin/mime.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions api/node_modules/.bin/nodemon

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions api/node_modules/.bin/nodemon.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions api/node_modules/.bin/nodemon.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions api/node_modules/.bin/nodetouch

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions api/node_modules/.bin/nodetouch.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions api/node_modules/.bin/nodetouch.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions api/node_modules/.bin/nopt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions api/node_modules/.bin/nopt.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions api/node_modules/.bin/nopt.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading