MetaPhase-Consulting/State-TalentMAP

View on GitHub
EXAMPLE_setup_environment.sh

Summary

Maintainability
Test Coverage
#!/bin/bash

# Set environment.
# This should not be set to 'production' when installing dependencies,
# otherwise dev dependencies required by the build process will not install.
export NODE_ENV=production

# The public prefix for the web application
# Default - /talentmap/
export PUBLIC_URL=/talentmap/

# The full path location of build artifacts, ie js and css
# Default - /build/ directory under source root
export STATIC_PATH=/var/www/html/talentmap/

# Protocol, hostname and port of API
# Default - local dev, http://localhost:8000/
export API_ROOT=http://localhost:8000/
export API_URL=http://localhost:8000/api/v1

# Port number for the Express web application
# This is important in shared environments
# Default - 3000
export PORT=3000

# External link to the About page
# Default - local test value https://github.com/18F/State-TalentMAP
export ABOUT_PAGE=https://github.com/18F/State-TalentMAP

# SAML configuration

# external facing endpoints
export ENTITY_ID=http://localhost:3000/talentmap/
export ASSERT_ENDPOINT=http://localhost:3000/talentmap/

# server certificate
export CERT_FILE=/path/to/cert_file.crt
export KEY_FILE=/path/to/key_file.key

# identity provider config
export SSO_LOGIN_URL=http://localhost:5000/login
export SSO_LOGOUT_URL=http://localhost:5000/logout
export SSO_CERT_FILE=/path/to/cert_file.crt