-
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.
Merge pull request #59 from RUGSoftEng/release-iteration2.1
Release (Iteration 2.1)
- Loading branch information
Showing
47 changed files
with
1,937 additions
and
805 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,6 @@ | ||
[Dolphin] | ||
Timestamp=2017,5,28,14,25,41 | ||
Version=3 | ||
|
||
[Settings] | ||
HiddenFilesShown=true |
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,33 @@ | ||
language: node_js | ||
|
||
env: | ||
- CXX=g++-4.9 | ||
|
||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- g++-4.9 | ||
|
||
services: | ||
- mongodb | ||
|
||
node_js: | ||
- "stable" | ||
|
||
notifications: | ||
slack: | ||
on_success: never | ||
on_failure: never | ||
email: | ||
on_success: never | ||
on_failure: never | ||
|
||
before_script: | ||
- sleep 15 | ||
- mongo mydb_test --eval 'db.addUser("travis", "test");' | ||
- npm install | ||
|
||
script: | ||
- npm test |
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 |
---|---|---|
|
@@ -4,17 +4,19 @@ Running project: [VIEW](https://medid.herokuapp.com/) | |
|
||
Client-side documentation: [VIEW](https://htmlpreview.github.io/?https://raw.githubusercontent.com/RUGSoftEng/2017-Medical-ID/develop/doc/index.html) | ||
|
||
**Install and run instructions:** | ||
**Install and run instructions:** | ||
Ensure you have Python2.7 and NodeJS installed on your machine. | ||
|
||
In app.js, you can find the mongoose.connect() function. In here, you will find the address of the Mongo database. Replace this with the address of the Mongo database you would like to use. | ||
|
||
In forgot.js, there are two sections as such: | ||
|
||
'''sh | ||
```sh | ||
auth: { | ||
user: '[email protected]', | ||
pass: 'enterpasswordhere' | ||
} | ||
''' | ||
``` | ||
|
||
Here, you should enter the username and password of the account you would like to send the password reset emails. | ||
|
||
|
@@ -27,28 +29,3 @@ $ npm install | |
```sh | ||
$ npm start | ||
``` | ||
|
||
|
||
### cmd Reminders ### | ||
|
||
**Obtaining files:** | ||
git clone -b develop https://github.com/RUGSoftEng/2017-Medical-ID.git | ||
git pull origin develop | ||
|
||
**Creating a new branch:** | ||
git checkout -b newBranch develop | ||
|
||
**Before a push:** | ||
git status | ||
git add folderName/* (or: git add -A) | ||
(remove file:) git rm fileName | ||
git commit -m "I just did some change" | ||
git push origin branchName | ||
|
||
**Add tag:** | ||
git tag -a tagName hashofCommit -m "tagging message" | ||
git push --follow-tags | ||
|
||
**Delete tag:** | ||
git tag -d tagName | ||
git push --delete origin tagName |
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 |
---|---|---|
|
@@ -12,17 +12,17 @@ var mongo = require('mongodb'); | |
var mongoose = require('mongoose'); | ||
var serverSettings = require('./serverSettings.js'); | ||
var forceHttps = require('express-force-https'); | ||
mongoose.Promise = require('bluebird'); | ||
|
||
mongoose.connect(serverSettings.parameters.db || 'mongodb://root:[email protected]:27017,med-shard-00-01-mgwxu.mongodb.net:27017,med-shard-00-02-mgwxu.mongodb.net:27017/loginapp?ssl=true&replicaSet=med-shard-0&authSource=admin'); | ||
|
||
if (serverSettings.parameters.db) { | ||
console.log("Connected to custom database '" + serverSettings.parameters.db + "'."); | ||
} | ||
|
||
//mongoose.connect('mongodb://localhost/loginapp'); | ||
var db = mongoose.connection; | ||
|
||
var routes = require('./routes/index'); | ||
var users = require('./routes/users'); | ||
var create = require('./routes/create'); | ||
var save = require('./routes/save'); | ||
var profile = require('./routes/profile'); | ||
|
@@ -93,10 +93,11 @@ app.use(function (req, res, next) { | |
next(); | ||
}); | ||
|
||
|
||
// Needed for testing: | ||
if (serverSettings.parameters.test) | ||
app.use(serverSettings.parameters.test); | ||
|
||
app.use('/', routes); | ||
app.use('/users', users); | ||
app.use('/create', create); | ||
app.use('/save', save); | ||
app.use('/profile', profile); | ||
|
@@ -106,6 +107,11 @@ app.use('/forgot', forgot); | |
// Set Port | ||
app.set('port', (process.env.PORT || 3000)); | ||
|
||
app.listen(app.get('port'), function(){ | ||
var server = app.listen(app.get('port'), function(){ | ||
console.log("Server started on port " + app.get('port') + "."); | ||
}); | ||
|
||
module.exports = { | ||
'app': app, | ||
'server': server | ||
}; |
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.