diff --git a/.env b/.env new file mode 100644 index 0000000..c42376d --- /dev/null +++ b/.env @@ -0,0 +1,9 @@ +DB_HOST = 'codeoverdose.cmdfpdmb6hqy.us-east-1.rds.amazonaws.com' +DB_PORT = 3306 +DB_NAME = 'codeoverdose' +DB_USER = 'admin' +DB_PWD = 'password' +STRIPE_SECRET_KEY = 'sk_test_51L5mAuGwc6VaRqW2Cw32gXfTJjA7SNoAOLMQP7R9nPgMObdeoDCr9pC91MoMhOJXdpglix2p9H4zWf13cHQR8FOY00rXFqUfzD' +STRIPE_PUBLIC_KEY = 'pk_test_51L5mAuGwc6VaRqW2TedYbYI4AiHKvQUXakCY9EfIiXOQ5601kqJESOjzSvQc0YqUY3nyATjfvxAf49b5C0H7W5Sp00THRKbfMM' +WEBHOOK_SECRET = 'whsec_f4043c4a5811b6e3ea97012646107b78034625935321a7d01ccee15473d8808d' +SERVER_URL = https://localhost:5000 \ No newline at end of file diff --git a/helpers/googlelogin.js b/helpers/googlelogin.js index 49d2b56..0578398 100644 --- a/helpers/googlelogin.js +++ b/helpers/googlelogin.js @@ -11,7 +11,7 @@ function googlelogin() { passport.use(new GoogleStrategy({ clientID: GOOGLE_CLIENT_ID, clientSecret: GOOGLE_CLIENT_SECRET, - callbackURL: "http://localhost:5000/login-google/callback" + callbackURL: "https://code-overdose.herokuapp.com/login-google/callback" }, async function(accessToken, refreshToken, profile, done) { const [user, created] = await User.findOrCreate({ diff --git a/helpers/imageUpload.js b/helpers/imageUpload.js index 498c8ad..a732ec7 100644 --- a/helpers/imageUpload.js +++ b/helpers/imageUpload.js @@ -30,7 +30,7 @@ function checkFileType(file, callback) { // Define Upload Function const upload = multer({ storage: storage, - limits: { fileSize: 19000000 }, // 2MB + limits: { fileSize: 2000000 }, // 2MB fileFilter: (req, file, callback) => { checkFileType(file, callback); } diff --git a/index.js b/index.js index 4a0481e..0ba74b4 100644 --- a/index.js +++ b/index.js @@ -49,7 +49,6 @@ app.set('io', io) // Library to use MySQL to store session objects const MySQLStore = require('express-mysql-session'); - var options = { host: process.env.DB_HOST, port: process.env.DB_PORT, @@ -183,6 +182,6 @@ const port = 5000; // Starts the server and listen to port -httpServer.listen(port, () => { +httpServer.listen(process.env.PORT || 5000, () => { console.log(`Server started on port ${port}`); }); \ No newline at end of file diff --git a/public/images/BankingImages/.DS_Store b/public/images/BankingImages/.DS_Store deleted file mode 100644 index 9dc8b55..0000000 Binary files a/public/images/BankingImages/.DS_Store and /dev/null differ diff --git a/public/images/BankingImages/about_2.jpg b/public/images/BankingImages/about_2.jpg deleted file mode 100644 index e8304e5..0000000 Binary files a/public/images/BankingImages/about_2.jpg and /dev/null differ diff --git a/public/images/BankingImages/flaticon-svg/backup.txt b/public/images/BankingImages/flaticon-svg/backup.txt deleted file mode 100644 index ae10c11..0000000 --- a/public/images/BankingImages/flaticon-svg/backup.txt +++ /dev/null @@ -1 +0,0 @@ -eyIxIjp7IklEIjoxLCJuYW1lIjoiTXkgaWNvbnMgY29sbGVjdGlvbiIsImJvb2ttYXJrX2lkIjoiZm5hYzV3aHR6Ym8wMDAwMCIsImNyZWF0ZWQiOm51bGwsInVwZGF0ZWQiOjE1NTYwNzQxMjQsImFjdGl2ZSI6MSwic291cmNlIjoibG9jYWwiLCJvcmRlciI6MCwiY29sb3IiOiIwMDAwMDAiLCJzdGF0dXMiOjF9LCJmbmFjNXdodHpibzAwMDAwIjpbeyJpZCI6MTM4Mjg1LCJ0ZWFtIjowLCJuYW1lIjoicmljaCIsImNvbG9yIjoiI1hYWFhYWCIsInByZW1pdW0iOjAsInNvcnQiOjJ9LHsiaWQiOjEzODI3NywidGVhbSI6MCwibmFtZSI6Im5vdGVzIiwiY29sb3IiOiIjWFhYWFhYIiwicHJlbWl1bSI6MCwic29ydCI6M30seyJpZCI6MTM4MjU5LCJ0ZWFtIjowLCJuYW1lIjoiY2FydCIsImNvbG9yIjoiI1hYWFhYWCIsInByZW1pdW0iOjAsInNvcnQiOjR9LHsiaWQiOjEzODMwNCwidGVhbSI6MCwibmFtZSI6Im1lZ2FwaG9uZSIsImNvbG9yIjoiI1hYWFhYWCIsInByZW1pdW0iOjAsInNvcnQiOjV9LHsiaWQiOjEzODI5MSwidGVhbSI6MCwibmFtZSI6ImNyZWRpdC1jYXJkIiwiY29sb3IiOiIjWFhYWFhYIiwicHJlbWl1bSI6MCwic29ydCI6Nn0seyJpZCI6MTM4MjgzLCJ0ZWFtIjowLCJuYW1lIjoicGlnZ3ktYmFuayIsImNvbG9yIjoiI1hYWFhYWCIsInByZW1pdW0iOjAsInNvcnQiOjd9LHsiaWQiOjEzODIwNywidGVhbSI6MCwibmFtZSI6IndhbGxldCIsImNvbG9yIjoiI1hYWFhYWCIsInByZW1pdW0iOjAsInNvcnQiOjF9XX0= \ No newline at end of file diff --git a/public/images/BankingImages/flaticon-svg/license/license.pdf b/public/images/BankingImages/flaticon-svg/license/license.pdf deleted file mode 100644 index bdeedb7..0000000 Binary files a/public/images/BankingImages/flaticon-svg/license/license.pdf and /dev/null differ diff --git a/public/images/BankingImages/flaticon-svg/svg/001-wallet.svg b/public/images/BankingImages/flaticon-svg/svg/001-wallet.svg deleted file mode 100644 index 814aa86..0000000 --- a/public/images/BankingImages/flaticon-svg/svg/001-wallet.svg +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public/images/BankingImages/flaticon-svg/svg/002-rich.svg b/public/images/BankingImages/flaticon-svg/svg/002-rich.svg deleted file mode 100644 index 1bd1836..0000000 --- a/public/images/BankingImages/flaticon-svg/svg/002-rich.svg +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public/images/BankingImages/flaticon-svg/svg/003-notes.svg b/public/images/BankingImages/flaticon-svg/svg/003-notes.svg deleted file mode 100644 index 0bf52a7..0000000 --- a/public/images/BankingImages/flaticon-svg/svg/003-notes.svg +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public/images/BankingImages/flaticon-svg/svg/004-cart.svg b/public/images/BankingImages/flaticon-svg/svg/004-cart.svg deleted file mode 100644 index fd4b618..0000000 --- a/public/images/BankingImages/flaticon-svg/svg/004-cart.svg +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public/images/BankingImages/flaticon-svg/svg/005-megaphone.svg b/public/images/BankingImages/flaticon-svg/svg/005-megaphone.svg deleted file mode 100644 index d0bd12f..0000000 --- a/public/images/BankingImages/flaticon-svg/svg/005-megaphone.svg +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public/images/BankingImages/flaticon-svg/svg/006-credit-card.svg b/public/images/BankingImages/flaticon-svg/svg/006-credit-card.svg deleted file mode 100644 index 8e80b3d..0000000 --- a/public/images/BankingImages/flaticon-svg/svg/006-credit-card.svg +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public/images/BankingImages/flaticon-svg/svg/007-piggy-bank.svg b/public/images/BankingImages/flaticon-svg/svg/007-piggy-bank.svg deleted file mode 100644 index 61c44aa..0000000 --- a/public/images/BankingImages/flaticon-svg/svg/007-piggy-bank.svg +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public/images/BankingImages/hero_1.jpg b/public/images/BankingImages/hero_1.jpg deleted file mode 100644 index 578cf64..0000000 Binary files a/public/images/BankingImages/hero_1.jpg and /dev/null differ diff --git a/public/images/BankingImages/hero_2.jpg b/public/images/BankingImages/hero_2.jpg deleted file mode 100644 index ac69836..0000000 Binary files a/public/images/BankingImages/hero_2.jpg and /dev/null differ diff --git a/public/images/BankingImages/img_1.jpg b/public/images/BankingImages/img_1.jpg deleted file mode 100644 index 6f53ac3..0000000 Binary files a/public/images/BankingImages/img_1.jpg and /dev/null differ diff --git a/public/images/BankingImages/img_2.jpg b/public/images/BankingImages/img_2.jpg deleted file mode 100644 index d339062..0000000 Binary files a/public/images/BankingImages/img_2.jpg and /dev/null differ diff --git a/public/images/BankingImages/img_3.jpg b/public/images/BankingImages/img_3.jpg deleted file mode 100644 index ee8c708..0000000 Binary files a/public/images/BankingImages/img_3.jpg and /dev/null differ diff --git a/public/images/BankingImages/img_4.jpg b/public/images/BankingImages/img_4.jpg deleted file mode 100644 index 2552a26..0000000 Binary files a/public/images/BankingImages/img_4.jpg and /dev/null differ diff --git a/public/images/BankingImages/img_5.jpg b/public/images/BankingImages/img_5.jpg deleted file mode 100644 index d2ebfe6..0000000 Binary files a/public/images/BankingImages/img_5.jpg and /dev/null differ diff --git a/public/images/BankingImages/money.jpg b/public/images/BankingImages/money.jpg deleted file mode 100644 index 0e7ba94..0000000 Binary files a/public/images/BankingImages/money.jpg and /dev/null differ diff --git a/public/images/BankingImages/person_1.jpg b/public/images/BankingImages/person_1.jpg deleted file mode 100644 index 32f97c4..0000000 Binary files a/public/images/BankingImages/person_1.jpg and /dev/null differ diff --git a/public/images/BankingImages/person_2.jpg b/public/images/BankingImages/person_2.jpg deleted file mode 100644 index 12def0e..0000000 Binary files a/public/images/BankingImages/person_2.jpg and /dev/null differ diff --git a/public/images/BankingImages/person_3.jpg b/public/images/BankingImages/person_3.jpg deleted file mode 100644 index c55bee3..0000000 Binary files a/public/images/BankingImages/person_3.jpg and /dev/null differ diff --git a/public/images/BankingImages/person_4.jpg b/public/images/BankingImages/person_4.jpg deleted file mode 100644 index e88b57e..0000000 Binary files a/public/images/BankingImages/person_4.jpg and /dev/null differ diff --git a/public/images/BankingImages/person_5.jpg b/public/images/BankingImages/person_5.jpg deleted file mode 100644 index 3734185..0000000 Binary files a/public/images/BankingImages/person_5.jpg and /dev/null differ diff --git a/public/images/BankingImages/person_6.jpg b/public/images/BankingImages/person_6.jpg deleted file mode 100644 index cceabf6..0000000 Binary files a/public/images/BankingImages/person_6.jpg and /dev/null differ diff --git a/public/images/BankingImages/person_7.jpg b/public/images/BankingImages/person_7.jpg deleted file mode 100644 index a2ab135..0000000 Binary files a/public/images/BankingImages/person_7.jpg and /dev/null differ diff --git a/public/images/BankingImages/person_8.jpg b/public/images/BankingImages/person_8.jpg deleted file mode 100644 index 00871d9..0000000 Binary files a/public/images/BankingImages/person_8.jpg and /dev/null differ diff --git a/public/images/BankingImages/slide_1.jpg b/public/images/BankingImages/slide_1.jpg deleted file mode 100644 index 9e8eee6..0000000 Binary files a/public/images/BankingImages/slide_1.jpg and /dev/null differ diff --git a/public/images/BankingImages/slide_2.jpg b/public/images/BankingImages/slide_2.jpg deleted file mode 100644 index 60461bf..0000000 Binary files a/public/images/BankingImages/slide_2.jpg and /dev/null differ diff --git a/public/images/BankingImages/slide_3.jpg b/public/images/BankingImages/slide_3.jpg deleted file mode 100644 index 8d9f280..0000000 Binary files a/public/images/BankingImages/slide_3.jpg and /dev/null differ diff --git a/public/images/avatars/avatar1.jpg b/public/images/avatars/avatar1.jpg deleted file mode 100644 index d2d0ec9..0000000 Binary files a/public/images/avatars/avatar1.jpg and /dev/null differ diff --git a/public/images/avatars/avatar2.jpg b/public/images/avatars/avatar2.jpg deleted file mode 100644 index 19d213f..0000000 Binary files a/public/images/avatars/avatar2.jpg and /dev/null differ diff --git a/public/images/avatars/avatar3.jpg b/public/images/avatars/avatar3.jpg deleted file mode 100644 index 5cc7264..0000000 Binary files a/public/images/avatars/avatar3.jpg and /dev/null differ diff --git a/public/images/banners/.DS_Store b/public/images/banners/.DS_Store deleted file mode 100644 index 5008ddf..0000000 Binary files a/public/images/banners/.DS_Store and /dev/null differ diff --git a/public/images/banners/ad-sm.png b/public/images/banners/ad-sm.png deleted file mode 100644 index e0480cf..0000000 Binary files a/public/images/banners/ad-sm.png and /dev/null differ diff --git a/public/images/banners/ad.png b/public/images/banners/ad.png deleted file mode 100644 index fc4dfbd..0000000 Binary files a/public/images/banners/ad.png and /dev/null differ diff --git a/public/images/banners/banner-item1.jpg b/public/images/banners/banner-item1.jpg deleted file mode 100644 index face024..0000000 Binary files a/public/images/banners/banner-item1.jpg and /dev/null differ diff --git a/public/images/banners/banner-item2.jpg b/public/images/banners/banner-item2.jpg deleted file mode 100644 index db49a8d..0000000 Binary files a/public/images/banners/banner-item2.jpg and /dev/null differ diff --git a/public/images/banners/banner-item3.jpg b/public/images/banners/banner-item3.jpg deleted file mode 100644 index 3f3cea5..0000000 Binary files a/public/images/banners/banner-item3.jpg and /dev/null differ diff --git a/public/images/banners/banner1.jpg b/public/images/banners/banner1.jpg deleted file mode 100644 index e04120a..0000000 Binary files a/public/images/banners/banner1.jpg and /dev/null differ diff --git a/public/images/banners/banner2.jpg b/public/images/banners/banner2.jpg deleted file mode 100644 index c1d71c5..0000000 Binary files a/public/images/banners/banner2.jpg and /dev/null differ diff --git a/public/images/banners/banner3.jpg b/public/images/banners/banner3.jpg deleted file mode 100644 index 52767ff..0000000 Binary files a/public/images/banners/banner3.jpg and /dev/null differ diff --git a/public/images/banners/banner4.jpg b/public/images/banners/banner4.jpg deleted file mode 100644 index 5f48398..0000000 Binary files a/public/images/banners/banner4.jpg and /dev/null differ diff --git a/public/images/banners/banner5.jpg b/public/images/banners/banner5.jpg deleted file mode 100644 index d6897b5..0000000 Binary files a/public/images/banners/banner5.jpg and /dev/null differ diff --git a/public/images/banners/banner6.jpg b/public/images/banners/banner6.jpg deleted file mode 100644 index 03156d2..0000000 Binary files a/public/images/banners/banner6.jpg and /dev/null differ diff --git a/public/images/banners/banner7.jpg b/public/images/banners/banner7.jpg deleted file mode 100644 index 24d3fea..0000000 Binary files a/public/images/banners/banner7.jpg and /dev/null differ diff --git a/public/images/banners/banner8.jpg b/public/images/banners/banner8.jpg deleted file mode 100644 index 2f69856..0000000 Binary files a/public/images/banners/banner8.jpg and /dev/null differ diff --git a/public/images/banners/banner9.jpg b/public/images/banners/banner9.jpg deleted file mode 100644 index 418d03e..0000000 Binary files a/public/images/banners/banner9.jpg and /dev/null differ diff --git a/public/images/banners/slide-lg-1.jpg b/public/images/banners/slide-lg-1.jpg deleted file mode 100644 index 3b68a11..0000000 Binary files a/public/images/banners/slide-lg-1.jpg and /dev/null differ diff --git a/public/images/banners/slide-lg-2.jpg b/public/images/banners/slide-lg-2.jpg deleted file mode 100644 index 8bd03ea..0000000 Binary files a/public/images/banners/slide-lg-2.jpg and /dev/null differ diff --git a/public/images/banners/slide-lg-3.jpg b/public/images/banners/slide-lg-3.jpg deleted file mode 100644 index 3c4c38a..0000000 Binary files a/public/images/banners/slide-lg-3.jpg and /dev/null differ diff --git a/public/images/banners/slide1.jpg b/public/images/banners/slide1.jpg deleted file mode 100644 index 85d7d88..0000000 Binary files a/public/images/banners/slide1.jpg and /dev/null differ diff --git a/public/images/banners/slide2.jpg b/public/images/banners/slide2.jpg deleted file mode 100644 index b72ce51..0000000 Binary files a/public/images/banners/slide2.jpg and /dev/null differ diff --git a/public/images/banners/slide3.jpg b/public/images/banners/slide3.jpg deleted file mode 100644 index 1506aa4..0000000 Binary files a/public/images/banners/slide3.jpg and /dev/null differ diff --git a/public/images/customerservice images/banners/.DS_Store b/public/images/customerservice images/banners/.DS_Store deleted file mode 100644 index 5008ddf..0000000 Binary files a/public/images/customerservice images/banners/.DS_Store and /dev/null differ diff --git a/public/images/customerservice images/banners/ad-sm.png b/public/images/customerservice images/banners/ad-sm.png deleted file mode 100644 index e0480cf..0000000 Binary files a/public/images/customerservice images/banners/ad-sm.png and /dev/null differ diff --git a/public/images/customerservice images/banners/ad.png b/public/images/customerservice images/banners/ad.png deleted file mode 100644 index fc4dfbd..0000000 Binary files a/public/images/customerservice images/banners/ad.png and /dev/null differ diff --git a/public/images/customerservice images/banners/banner-item1.jpg b/public/images/customerservice images/banners/banner-item1.jpg deleted file mode 100644 index face024..0000000 Binary files a/public/images/customerservice images/banners/banner-item1.jpg and /dev/null differ diff --git a/public/images/customerservice images/banners/banner-item2.jpg b/public/images/customerservice images/banners/banner-item2.jpg deleted file mode 100644 index db49a8d..0000000 Binary files a/public/images/customerservice images/banners/banner-item2.jpg and /dev/null differ diff --git a/public/images/customerservice images/banners/banner-item3.jpg b/public/images/customerservice images/banners/banner-item3.jpg deleted file mode 100644 index 3f3cea5..0000000 Binary files a/public/images/customerservice images/banners/banner-item3.jpg and /dev/null differ diff --git a/public/images/customerservice images/banners/banner1.jpg b/public/images/customerservice images/banners/banner1.jpg deleted file mode 100644 index e04120a..0000000 Binary files a/public/images/customerservice images/banners/banner1.jpg and /dev/null differ diff --git a/public/images/customerservice images/banners/banner2.jpg b/public/images/customerservice images/banners/banner2.jpg deleted file mode 100644 index c1d71c5..0000000 Binary files a/public/images/customerservice images/banners/banner2.jpg and /dev/null differ diff --git a/public/images/customerservice images/banners/banner3.jpg b/public/images/customerservice images/banners/banner3.jpg deleted file mode 100644 index 52767ff..0000000 Binary files a/public/images/customerservice images/banners/banner3.jpg and /dev/null differ diff --git a/public/images/customerservice images/banners/banner4.jpg b/public/images/customerservice images/banners/banner4.jpg deleted file mode 100644 index 5f48398..0000000 Binary files a/public/images/customerservice images/banners/banner4.jpg and /dev/null differ diff --git a/public/images/customerservice images/banners/banner5.jpg b/public/images/customerservice images/banners/banner5.jpg deleted file mode 100644 index d6897b5..0000000 Binary files a/public/images/customerservice images/banners/banner5.jpg and /dev/null differ diff --git a/public/images/customerservice images/banners/banner6.jpg b/public/images/customerservice images/banners/banner6.jpg deleted file mode 100644 index 03156d2..0000000 Binary files a/public/images/customerservice images/banners/banner6.jpg and /dev/null differ diff --git a/public/images/customerservice images/banners/banner7.jpg b/public/images/customerservice images/banners/banner7.jpg deleted file mode 100644 index 24d3fea..0000000 Binary files a/public/images/customerservice images/banners/banner7.jpg and /dev/null differ diff --git a/public/images/customerservice images/banners/banner8.jpg b/public/images/customerservice images/banners/banner8.jpg deleted file mode 100644 index 2f69856..0000000 Binary files a/public/images/customerservice images/banners/banner8.jpg and /dev/null differ diff --git a/public/images/customerservice images/banners/banner9.jpg b/public/images/customerservice images/banners/banner9.jpg deleted file mode 100644 index 418d03e..0000000 Binary files a/public/images/customerservice images/banners/banner9.jpg and /dev/null differ diff --git a/public/images/customerservice images/banners/slide-lg-1.jpg b/public/images/customerservice images/banners/slide-lg-1.jpg deleted file mode 100644 index 3b68a11..0000000 Binary files a/public/images/customerservice images/banners/slide-lg-1.jpg and /dev/null differ diff --git a/public/images/customerservice images/banners/slide-lg-2.jpg b/public/images/customerservice images/banners/slide-lg-2.jpg deleted file mode 100644 index 8bd03ea..0000000 Binary files a/public/images/customerservice images/banners/slide-lg-2.jpg and /dev/null differ diff --git a/public/images/customerservice images/banners/slide-lg-3.jpg b/public/images/customerservice images/banners/slide-lg-3.jpg deleted file mode 100644 index 3c4c38a..0000000 Binary files a/public/images/customerservice images/banners/slide-lg-3.jpg and /dev/null differ diff --git a/public/images/customerservice images/banners/slide1.jpg b/public/images/customerservice images/banners/slide1.jpg deleted file mode 100644 index 85d7d88..0000000 Binary files a/public/images/customerservice images/banners/slide1.jpg and /dev/null differ diff --git a/public/images/customerservice images/banners/slide2.jpg b/public/images/customerservice images/banners/slide2.jpg deleted file mode 100644 index b72ce51..0000000 Binary files a/public/images/customerservice images/banners/slide2.jpg and /dev/null differ diff --git a/public/images/customerservice images/banners/slide3.jpg b/public/images/customerservice images/banners/slide3.jpg deleted file mode 100644 index 1506aa4..0000000 Binary files a/public/images/customerservice images/banners/slide3.jpg and /dev/null differ diff --git a/public/images/customerservice images/posts/.DS_Store b/public/images/customerservice images/posts/.DS_Store deleted file mode 100644 index 5008ddf..0000000 Binary files a/public/images/customerservice images/posts/.DS_Store and /dev/null differ diff --git a/public/images/customerservice images/posts/1.jpg b/public/images/customerservice images/posts/1.jpg deleted file mode 100644 index e00848a..0000000 Binary files a/public/images/customerservice images/posts/1.jpg and /dev/null differ diff --git a/public/images/customerservice images/posts/2.jpg b/public/images/customerservice images/posts/2.jpg deleted file mode 100644 index 1ea4672..0000000 Binary files a/public/images/customerservice images/posts/2.jpg and /dev/null differ diff --git a/public/images/customerservice images/posts/3.jpg b/public/images/customerservice images/posts/3.jpg deleted file mode 100644 index 7f9150c..0000000 Binary files a/public/images/customerservice images/posts/3.jpg and /dev/null differ diff --git a/public/images/customerservice images/posts/4.jpg b/public/images/customerservice images/posts/4.jpg deleted file mode 100644 index f957051..0000000 Binary files a/public/images/customerservice images/posts/4.jpg and /dev/null differ diff --git a/public/images/icons/.DS_Store b/public/images/icons/.DS_Store deleted file mode 100644 index 5008ddf..0000000 Binary files a/public/images/icons/.DS_Store and /dev/null differ diff --git a/public/images/icons/flags/AU.png b/public/images/icons/flags/AU.png deleted file mode 100644 index 2e16697..0000000 Binary files a/public/images/icons/flags/AU.png and /dev/null differ diff --git a/public/images/icons/flags/AU@2x.png b/public/images/icons/flags/AU@2x.png deleted file mode 100644 index 8f66d0d..0000000 Binary files a/public/images/icons/flags/AU@2x.png and /dev/null differ diff --git a/public/images/icons/flags/CN.png b/public/images/icons/flags/CN.png deleted file mode 100644 index b81370b..0000000 Binary files a/public/images/icons/flags/CN.png and /dev/null differ diff --git a/public/images/icons/flags/CN@2x.png b/public/images/icons/flags/CN@2x.png deleted file mode 100644 index b7a83ea..0000000 Binary files a/public/images/icons/flags/CN@2x.png and /dev/null differ diff --git a/public/images/icons/flags/DE.png b/public/images/icons/flags/DE.png deleted file mode 100644 index 8508aa0..0000000 Binary files a/public/images/icons/flags/DE.png and /dev/null differ diff --git a/public/images/icons/flags/DE@2x.png b/public/images/icons/flags/DE@2x.png deleted file mode 100644 index 3ea025b..0000000 Binary files a/public/images/icons/flags/DE@2x.png and /dev/null differ diff --git a/public/images/icons/flags/GB.png b/public/images/icons/flags/GB.png deleted file mode 100644 index f54112a..0000000 Binary files a/public/images/icons/flags/GB.png and /dev/null differ diff --git a/public/images/icons/flags/GB@2x.png b/public/images/icons/flags/GB@2x.png deleted file mode 100644 index 3142d3a..0000000 Binary files a/public/images/icons/flags/GB@2x.png and /dev/null differ diff --git a/public/images/icons/flags/IN.png b/public/images/icons/flags/IN.png deleted file mode 100644 index a1bb5a3..0000000 Binary files a/public/images/icons/flags/IN.png and /dev/null differ diff --git a/public/images/icons/flags/IN@2x.png b/public/images/icons/flags/IN@2x.png deleted file mode 100644 index 9757ea5..0000000 Binary files a/public/images/icons/flags/IN@2x.png and /dev/null differ diff --git a/public/images/icons/flags/RU.png b/public/images/icons/flags/RU.png deleted file mode 100644 index c8ce7ac..0000000 Binary files a/public/images/icons/flags/RU.png and /dev/null differ diff --git a/public/images/icons/flags/RU@2x.png b/public/images/icons/flags/RU@2x.png deleted file mode 100644 index 7496114..0000000 Binary files a/public/images/icons/flags/RU@2x.png and /dev/null differ diff --git a/public/images/icons/flags/TR.png b/public/images/icons/flags/TR.png deleted file mode 100644 index 60fc73b..0000000 Binary files a/public/images/icons/flags/TR.png and /dev/null differ diff --git a/public/images/icons/flags/TR@2x.png b/public/images/icons/flags/TR@2x.png deleted file mode 100644 index d15bbba..0000000 Binary files a/public/images/icons/flags/TR@2x.png and /dev/null differ diff --git a/public/images/icons/flags/US.png b/public/images/icons/flags/US.png deleted file mode 100644 index c9284e1..0000000 Binary files a/public/images/icons/flags/US.png and /dev/null differ diff --git a/public/images/icons/flags/US@2x.png b/public/images/icons/flags/US@2x.png deleted file mode 100644 index 151c054..0000000 Binary files a/public/images/icons/flags/US@2x.png and /dev/null differ diff --git a/public/images/icons/flags/UZ.png b/public/images/icons/flags/UZ.png deleted file mode 100644 index b75909a..0000000 Binary files a/public/images/icons/flags/UZ.png and /dev/null differ diff --git a/public/images/icons/flags/UZ@2x.png b/public/images/icons/flags/UZ@2x.png deleted file mode 100644 index 0f1e15b..0000000 Binary files a/public/images/icons/flags/UZ@2x.png and /dev/null differ diff --git a/public/images/icons/pay-american-ex.png b/public/images/icons/pay-american-ex.png deleted file mode 100644 index 77e3c8e..0000000 Binary files a/public/images/icons/pay-american-ex.png and /dev/null differ diff --git a/public/images/icons/pay-bank.png b/public/images/icons/pay-bank.png deleted file mode 100644 index b154ed4..0000000 Binary files a/public/images/icons/pay-bank.png and /dev/null differ diff --git a/public/images/icons/pay-mastercard.png b/public/images/icons/pay-mastercard.png deleted file mode 100644 index 928088e..0000000 Binary files a/public/images/icons/pay-mastercard.png and /dev/null differ diff --git a/public/images/icons/pay-visa-el.png b/public/images/icons/pay-visa-el.png deleted file mode 100644 index 3d97268..0000000 Binary files a/public/images/icons/pay-visa-el.png and /dev/null differ diff --git a/public/images/icons/pay-visa.png b/public/images/icons/pay-visa.png deleted file mode 100644 index 6d5a950..0000000 Binary files a/public/images/icons/pay-visa.png and /dev/null differ diff --git a/public/images/icons/stars-active.svg b/public/images/icons/stars-active.svg deleted file mode 100644 index 857f866..0000000 --- a/public/images/icons/stars-active.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - stars-active - Created with Sketch. - - - - - - - - - - - - \ No newline at end of file diff --git a/public/images/icons/starts-disable.svg b/public/images/icons/starts-disable.svg deleted file mode 100644 index 52aef49..0000000 --- a/public/images/icons/starts-disable.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - starts-disable - Created with Sketch. - - - - - - - - - - - - \ No newline at end of file diff --git a/public/images/posts/.DS_Store b/public/images/posts/.DS_Store deleted file mode 100644 index 5008ddf..0000000 Binary files a/public/images/posts/.DS_Store and /dev/null differ diff --git a/public/images/posts/1.jpg b/public/images/posts/1.jpg deleted file mode 100644 index e00848a..0000000 Binary files a/public/images/posts/1.jpg and /dev/null differ diff --git a/public/images/posts/2.jpg b/public/images/posts/2.jpg deleted file mode 100644 index 1ea4672..0000000 Binary files a/public/images/posts/2.jpg and /dev/null differ diff --git a/public/images/posts/3.jpg b/public/images/posts/3.jpg deleted file mode 100644 index 7f9150c..0000000 Binary files a/public/images/posts/3.jpg and /dev/null differ diff --git a/public/images/posts/4.jpg b/public/images/posts/4.jpg deleted file mode 100644 index f957051..0000000 Binary files a/public/images/posts/4.jpg and /dev/null differ diff --git a/public/scripts/payment.js b/public/scripts/payment.js index cfab607..0eada3b 100644 --- a/public/scripts/payment.js +++ b/public/scripts/payment.js @@ -94,7 +94,7 @@ function checkoutcheck() { var address = document.getElementById('address').value var unit_number = document.getElementById('unit_number').value var postalcode = document.getElementById('postalcode').value - fetch("http://localhost:5000/checkout", { + fetch("https://code-overdose.herokuapp.com/checkout", { method: "POST", headers: { "Content-Type": "application/json", diff --git a/routes/transactions.js b/routes/transactions.js index 45154c4..4ed8396 100644 --- a/routes/transactions.js +++ b/routes/transactions.js @@ -107,8 +107,8 @@ router.post('/payment', ensureAuthenticated, async (req, res) => { chatId: `${req.body.id}`, orderOwnerName: `${req.body.fname}`, }, - success_url: `http://localhost:5000${req.body.curl}`, - cancel_url: `http://localhost:5000${req.body.curl}`, + success_url: `https://code-overdose.herokuapp.com${req.body.curl}`, + cancel_url: `https://code-overdose.herokuapp.com${req.body.curl}`, }) res.json({ url: session.url }) } catch (e) { diff --git a/routes/user.js b/routes/user.js index c8e8ea6..da4bbbf 100644 --- a/routes/user.js +++ b/routes/user.js @@ -39,7 +39,7 @@ router.get('/profile/:id', ensureAuthenticated, async (req, res) => { router.get('/account', ensureAuthenticated, async (req, res) => { user = await User.findByPk(req.user.id) - res.render("user/myAccount", {user}) + res.render("user/myaccount", {user}) }) router.post('/account', ensureAuthenticated, async (req, res) => { diff --git a/views/inbox/index.handlebars b/views/inbox/index.handlebars index be9ba84..ab63153 100644 --- a/views/inbox/index.handlebars +++ b/views/inbox/index.handlebars @@ -93,7 +93,7 @@