All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nodejs-express-server.config.mustache Maven / Gradle / Ivy

There is a newer version: 7.8.0
Show newest version
const path = require('path');

const config = {
  ROOT_DIR: __dirname,
  URL_PORT: {{serverPort}}{{^serverPort}}3000{{/serverPort}},
  URL_PATH: '{{serverHost}}{{^serverHost}}http://localhost{{/serverHost}}',
  BASE_VERSION: '{{contextPath}}{{^contextPath}}v2{{/contextPath}}',
  CONTROLLER_DIRECTORY: path.join(__dirname, 'controllers'),
  PROJECT_DIR: __dirname,
};
config.OPENAPI_YAML = path.join(config.ROOT_DIR, 'api', 'openapi.yaml');
config.FULL_PATH = `${config.URL_PATH}:${config.URL_PORT}/${config.BASE_VERSION}`;
config.FILE_UPLOAD_PATH = path.join(config.PROJECT_DIR, 'uploaded_files');

module.exports = config;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy