Package json

This commit is contained in:
Senad Uka
2019-03-13 05:43:48 +01:00
parent b1a08a7a57
commit 7fc24add1f
2 changed files with 11 additions and 7 deletions

View File

@@ -95,4 +95,10 @@ app.post("/payforalert", function(request, response) {
}); });
}); });
// Anything that doesn't match the above, send back index.html
app.get('*', (req, res) => {
res.sendFile(path.join(__dirname + '/../frontend-react/build/index.html'))
})
app.listen(port, () => console.log(`Example app listening on port ${port}!`)); app.listen(port, () => console.log(`Example app listening on port ${port}!`));

View File

@@ -16,12 +16,10 @@
"node": "11.10.x" "node": "11.10.x"
}, },
"dependencies": { "dependencies": {
"2checkout-node": "0.0.1", },
"@sendgrid/mail": "^6.3.1", "scripts": {
"cheerio": "^1.0.0-rc.2", "test": "echo \"Error: no test specified\" && exit 1",
"express": "^4.16.4", "start": "node ./backend/index.js",
"mysql2": "^1.6.4", "heroku-postbuild": "cd frontend-react && npm install && npm run build && cd .. && cd backend && npm install"
"node-fetch": "^2.3.0",
"sequelize": "^4.42.0"
} }
} }