import sys, os

# run postgres on heroku
# conn = db.conn("host='ec2-54-197-253-122.compute-1.amazonaws.com' dbname='df3192mkr3k3ch' user='egtavjsibewktj' password='<PASSWORD>'")

# run postgres at local
db_config = "host='localhost' dbname='postgres' user='nghi' password='<PASSWORD>'"

# imgur
client_id = 'bb4b7d38bb08bd6'
client_secret = 'ee015df68e84e93dc42fb594651639a14e48ae73'
access_token = '2b9a7c6ce39556af0e56acc7abc2ba9af692a8c4'
expires_in = '315360000'
token_type = 'bearer'
refresh_token = '89ce098cb74c037800eb98c673ec560e5778daaf'
account_username = 'huunghi'
account_id = '90815005'

class Development:
    ''' 
    Development enviroment configuration
    '''
    DEBUG = True
    TESTING = False
    JWT_SECRET_KEY = os.getenv('JWT_SECRET_KEY')
    SQLALCHEMY_DATABASE_URI = os.getenv('DATABASE_URL')

class Production:
    """
    Production enviroment configuration
    """
    DEBUG = False
    TESTING = False
    JWT_SECRET_KEY = os.getenv('JWT_SECRET_KEY')
    SQLALCHEMY_DATABASE_URI = os.getenv('DATABASE_URL')

app_config = {
    'development' : Development,
    'production' : Production
}
        
import sys, os

# run postgres on heroku
# conn = db.conn("host='ec2-54-197-253-122.compute-1.amazonaws.com' dbname='df3192mkr3k3ch' user='egtavjsibewktj' password='<PASSWORD>'")

# run postgres at local
db_config = "host='localhost' dbname='postgres' user='nghi' password='<PASSWORD>'"

# imgur
client_id = 'bb4b7d38bb08bd6'
client_secret = 'ee015df68e84e93dc42fb594651639a14e48ae73'
access_token = '2b9a7c6ce39556af0e56acc7abc2ba9af692a8c4'
expires_in = '315360000'
token_type = 'bearer'
refresh_token = '89ce098cb74c037800eb98c673ec560e5778daaf'
account_username = 'huunghi'
account_id = '90815005'

class Development:
    ''' 
    Development enviroment configuration
    '''
    DEBUG = True
    TESTING = False
    JWT_SECRET_KEY = os.getenv('JWT_SECRET_KEY')
    SQLALCHEMY_DATABASE_URI = os.getenv('DATABASE_URL')

class Production:
    """
    Production enviroment configuration
    """
    DEBUG = False
    TESTING = False
    JWT_SECRET_KEY = os.getenv('JWT_SECRET_KEY')
    SQLALCHEMY_DATABASE_URI = os.getenv('DATABASE_URL')

app_config = {
    'development' : Development,
    'production' : Production
}
        
# run postgres on heroku # conn = db.conn("host='ec2-54-197-253-122.compute-1.amazonaws.com' dbname='df3192mkr3k3ch' user='egtavjsibewktj' password='<PASSWORD>'") # run postgres at local # imgur Development enviroment configuration Production enviroment configuration