ну вот конфиг мой. даже и не знаю какую еще инфу можно добавить кроме конфига и пекейдж джейсона. Думаю уже локально попробовать развернуть у себя и посмотреть будет ли запускаться что-то... Без ошибок конечно сложно понять в чем дело вообще та и смотреть их где в ноде я пока не знаю .
let appConfig = {
connectionString:
"mongodb://:@/",
database: "database name",
};
let appConfig = {
connectionString:
"mongodb://:@/",
database: "database name",
};
switch (env) {
case envEnum.DEV:
envirnomentSpecificConfig = {
Web_URL: "https://my domain/",
server: {
port: 8081,
hostname: "localhost"
}
};
break;
case envEnum.STAGING:
envirnomentSpecificConfig = {
Web_URL: "https://my domain/",
server: {
port: 3501,
hostname: "localhost"
}
};
break;
case envEnum.PRODUCTION:
envirnomentSpecificConfig = {
Web_URL: "https://my domain/",
server: {
port: 3035,
hostname: "localhost"
}
};
break;
default:
break;
}
pacage.json
{
"name": "project-company",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "react-scripts test",
"start": "webpack --progress --colors",
"build": "react-scripts build",
"eject": "react-scripts eject"
},
"repository": {
"type": "git"
},
"author": "Ankit",
"license": "ISC",
"dependencies": {
"axios": "^0.16.2",
"body-parser": "^1.18.3",
"can-use-dom": "^0.1.0",
"cheerio": "^1.0.0-rc.2",
"compression-webpack-plugin": "^1.0.0",
"cookie-parser": "^1.4.3",
"ect": "^0.5.9",
"express": "^4.16.4",
"express-fileupload": "^0.1.3",
"express-session": "^1.15.6",
"google-maps-api-loader": "^1.1.1",
"jsonwebtoken": "^7.4.1",
"jwt-decode": "^2.2.0",
"mangopay-cardregistration-js-kit": "^1.2.2",
"mangopay2-nodejs-sdk": "^1.8.0",
"mongodb-core": "^2.1.14",
"mongoose": "^4.13.18",
"notie": "^4.3.1",
"react": "^15.5.4",
"react-dom": "^15.5.4",
"react-flatpickr": "^3.4.0",
"react-google-maps": "^7.0.0",
"react-helmet": "^5.2.0",
"react-js-pagination": "^2.2.0",
"react-meta-tags": "^0.3.0",
"react-router-dom": "^4.1.1",
"react-rte": "^0.14.1",
"react-share": "^1.15.1",
"request": "^2.88.0",
"require_optional": "^1.0.1",
"resolve-from": "^3.0.0",
"sendgrid": "^5.2.3",
"stripe": "^4.23.1",
"valuelink": "^1.5.2"
},
"devDependencies": {
"babel-core": "^6.26.3",
"babel-loader": "^7.0.0",
"babel-plugin-react-html-attrs": "^2.0.0",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-polyfill": "^6.26.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"webpack": "^2.6.1"
}
}