Server setup with mongodb.

Server handles creating and fetching products and their variations.
Models are saved to mongo using mongoose.
STILL PRETTY BARE BONES!
This commit is contained in:
2020-07-18 21:48:45 +02:00
parent 7078d994c0
commit 0dd3944fd2
10 changed files with 231 additions and 2 deletions

View File

@@ -5,7 +5,8 @@
"main": "server.js",
"repository": "git@github.com:kevinmidboe/planetposen.git",
"scripts": {
"dev": "cross-env NODE_ENV=development webpack-dev-server --progress"
"dev": "cross-env NODE_ENV=development webpack-dev-server --progress",
"server": "NODE_PATH=server node server/app.js"
},
"author": "KevinMidboe <kevin.midboe@gmail.com>",
"license": "MIT",
@@ -14,6 +15,7 @@
"clean-webpack-plugin": "^3.0.0",
"extract-text-webpack-plugin": "^3.0.2",
"moment": "^2.24.0",
"mongoose": "^5.9.24",
"node-fetch": "^2.6.0",
"node-sass": "^4.13.0",
"vue": "~2.6",