Skip to content

Commit

Permalink
Merge branch 'master' into set-engine-requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
danxfisher authored Jul 17, 2018
2 parents f4f7525 + 7f9a6bb commit f13c8ec
Show file tree
Hide file tree
Showing 10 changed files with 7,374 additions and 23 deletions.
4 changes: 4 additions & 0 deletions .env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export USERNAME=
export PASSWORD=
export DOMAIN=
export PORT=
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/.env
/.sass-cache/
/node_modules/
/iisnode/
Expand Down
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,17 @@ This application assumes you have:
"proxy" : "http://localhost:8080"
```
to whatever the IP of where express is running. Typically you can use something similar to the default but you can change the IP and port as long as it coincides with what is in `server.js`.
4. In `ui-react/`, open a terminal or cmd:
4. In the root directory, open a terminal or cmd:
```
$ npm install
$ npm run build
```
5. In the root directory, open a terminal or cmd:
```
$ node server.js
$ npm start
```
6. If you want to start the react development server, in `ui-react/` run:
6. If you want to start the react development server, in the root directory run:
```
$ npm start
$ npm start-ui-dev
```
***
Expand Down Expand Up @@ -142,6 +141,14 @@ There are three main directories in the `ui-react/src/` folder:
};
```
* Alternatively, username, password and domain can be set as environment variable
```bash
export USERNAME=svcacct_email@domain.com
export PASSWORD=password
export DOMAIN=domain.com
```
* In `/ui-react/src/config/flightboard.config.js`, manage your customizations:
```javascript
Expand Down
5 changes: 5 additions & 0 deletions app/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ module.exports = function(app) {
});
});

// heartbeat-service to check if server is alive
app.get('/api/heartbeat', function(req, res) {
res.json({ status: 'OK' });
});

// redirects everything else to our react app
app.get('*', function(req, res) {
res.sendFile(path.join(__dirname,'../ui-react/build/','index.html'));
Expand Down
6 changes: 3 additions & 3 deletions config/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
module.exports = {
// this user MUST have full access to all the room accounts
'exchange' : {
'username' : 'SVCACCT_EMAIL@DOMAIN.COM',
'password' : 'PASSWORD',
'username' : process.env.USERNAME || 'SVCACCT_EMAIL@DOMAIN.COM',
'password' : process.env.PASSWORD || 'PASSWORD',
'uri' : 'https://outlook.office365.com/EWS/Exchange.asmx'
},
// Ex: CONTOSO.COM, Contoso.com, Contoso.co.uk, etc.
'domain' : 'DOMAIN.COM'
'domain' : process.env.DOMAIN || 'DOMAIN.COM'
};
Loading

0 comments on commit f13c8ec

Please sign in to comment.