-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5122c79
commit d392a52
Showing
11 changed files
with
515 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
/** | ||
* React Starter Kit (https://www.reactstarterkit.com/) | ||
* | ||
* Copyright © 2014-present Kriasoft, LLC. All rights reserved. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE.txt file in the root directory of this source tree. | ||
*/ | ||
|
||
/* eslint-disable max-len */ | ||
const defaultPort = 3000 //8080; | ||
|
||
if (process.env.BROWSER) { | ||
throw new Error( | ||
'Do not import `config.js` from inside the client-side code.', | ||
); | ||
} | ||
|
||
module.exports = { | ||
// Node.js app | ||
port: process.env.OPENSHIFT_NODEJS_PORT || | ||
process.env.VCAP_APP_PORT || | ||
process.env.PORT || | ||
process.env.DEV_SERVICE_PORT || | ||
defaultPort, | ||
|
||
// API Gateway | ||
api: { | ||
// API URL to be used in the client-side code | ||
clientUrl: process.env.API_CLIENT_URL || '', | ||
// API URL to be used in the server-side code | ||
serverUrl: | ||
process.env.API_SERVER_URL || process.env.GRAPHQL_URL || | ||
`http://${process.env.GRAPHQL_HOST || | ||
'localhost'}:${process.env.OPENSHIFT_NODEJS_PORT || | ||
process.env.VCAP_APP_PORT || | ||
process.env.PORT || | ||
process.env.DEV_SERVICE_PORT || | ||
process.env.GRAPHQL_PORT || | ||
defaultPort}`, | ||
}, | ||
|
||
// Database | ||
databaseUrl: process.env.DATABASE_URL || 'sqlite:data/database.sqlite', | ||
|
||
// Web analytics | ||
analytics: { | ||
// https://analytics.google.com/ | ||
googleTrackingId: process.env.GOOGLE_TRACKING_ID, // UA-XXXXX-X | ||
}, | ||
|
||
// Authentication | ||
auth: { | ||
jwt: { secret: process.env.JWT_SECRET || 'XXXX-REPLACEME-XXXX' }, | ||
|
||
// https://developers.facebook.com/ | ||
facebook: { | ||
id: process.env.FACEBOOK_APP_ID || '186244551745631', | ||
secret: | ||
process.env.FACEBOOK_APP_SECRET || 'a970ae3240ab4b9b8aae0f9f0661c6fc', | ||
}, | ||
|
||
// https://cloud.google.com/console/project | ||
google: { | ||
id: | ||
process.env.GOOGLE_CLIENT_ID || | ||
'251410730550-ahcg0ou5mgfhl8hlui1urru7jn5s12km.apps.googleusercontent.com', | ||
secret: process.env.GOOGLE_CLIENT_SECRET || 'Y8yR9yZAhm9jQ8FKAL8QIEcd', | ||
}, | ||
|
||
// https://apps.twitter.com/ | ||
twitter: { | ||
key: process.env.TWITTER_CONSUMER_KEY || 'Ie20AZvLJI2lQD5Dsgxgjauns', | ||
secret: | ||
process.env.TWITTER_CONSUMER_SECRET || | ||
'KTZ6cxoKnEakQCeSpZlaUCJWGAlTEBJj0y2EMkUBujA7zWSvaQ', | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
/** | ||
* React Starter Kit (https://www.reactstarterkit.com/) | ||
* | ||
* Copyright © 2014-present Kriasoft, LLC. All rights reserved. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE.txt file in the root directory of this source tree. | ||
*/ | ||
|
||
/* eslint-disable max-len */ | ||
const defaultPort = 8080; | ||
|
||
if (process.env.BROWSER) { | ||
throw new Error( | ||
'Do not import `config.js` from inside the client-side code.', | ||
); | ||
} | ||
|
||
module.exports = { | ||
// Node.js app | ||
port: process.env.OPENSHIFT_NODEJS_PORT || | ||
process.env.VCAP_APP_PORT || | ||
process.env.PORT || | ||
process.env.DEV_SERVICE_PORT || | ||
defaultPort, | ||
|
||
// API Gateway | ||
api: { | ||
// API URL to be used in the client-side code | ||
clientUrl: process.env.API_CLIENT_URL || '', | ||
// API URL to be used in the server-side code | ||
serverUrl: | ||
process.env.API_SERVER_URL || process.env.GRAPHQL_URL || | ||
`http://${process.env.GRAPHQL_HOST || | ||
'localhost'}:${process.env.OPENSHIFT_NODEJS_PORT || | ||
process.env.VCAP_APP_PORT || | ||
process.env.PORT || | ||
process.env.DEV_SERVICE_PORT || | ||
process.env.GRAPHQL_PORT || | ||
defaultPort}`, | ||
}, | ||
|
||
// Database | ||
databaseUrl: process.env.DATABASE_URL || 'sqlite:data/database.sqlite', | ||
|
||
// Web analytics | ||
analytics: { | ||
// https://analytics.google.com/ | ||
googleTrackingId: process.env.GOOGLE_TRACKING_ID, // UA-XXXXX-X | ||
}, | ||
|
||
// Authentication | ||
auth: { | ||
jwt: { secret: process.env.JWT_SECRET || 'XXXX-REPLACEME-XXXX' }, | ||
|
||
// https://developers.facebook.com/ | ||
facebook: { | ||
id: process.env.FACEBOOK_APP_ID || '186244551745631', | ||
secret: | ||
process.env.FACEBOOK_APP_SECRET || 'a970ae3240ab4b9b8aae0f9f0661c6fc', | ||
}, | ||
|
||
// https://cloud.google.com/console/project | ||
google: { | ||
id: | ||
process.env.GOOGLE_CLIENT_ID || | ||
'251410730550-ahcg0ou5mgfhl8hlui1urru7jn5s12km.apps.googleusercontent.com', | ||
secret: process.env.GOOGLE_CLIENT_SECRET || 'Y8yR9yZAhm9jQ8FKAL8QIEcd', | ||
}, | ||
|
||
// https://apps.twitter.com/ | ||
twitter: { | ||
key: process.env.TWITTER_CONSUMER_KEY || 'Ie20AZvLJI2lQD5Dsgxgjauns', | ||
secret: | ||
process.env.TWITTER_CONSUMER_SECRET || | ||
'KTZ6cxoKnEakQCeSpZlaUCJWGAlTEBJj0y2EMkUBujA7zWSvaQ', | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/** | ||
* React Starter Kit (https://www.reactstarterkit.com/) | ||
* | ||
* Copyright © 2014-present Kriasoft, LLC. All rights reserved. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE.txt file in the root directory of this source tree. | ||
*/ | ||
|
||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import withStyles from 'isomorphic-style-loader/lib/withStyles'; | ||
import s from './Home.css'; | ||
|
||
class Home extends React.Component { | ||
static propTypes = { | ||
news: PropTypes.string.isRequired, | ||
}; | ||
|
||
render() { | ||
return ( | ||
<div className={s.root}> | ||
<div className={s.container}> | ||
<h1>cryptoStar Alive</h1> | ||
release : {this.props.news} | ||
</div> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default withStyles(s)(Home); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.