Skip to content

Upgrade dependencies #169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -88,6 +88,25 @@ docker-compose build
docker-compose up
```

#### List of dependencies:
```
bcrypt-nodejs
body-parser
consolidate
csurf
dont-sniff-mimetype
express
express-session
forever
helmet
marked
mongodb
needle
node-esapi
serve-favicon
swig
underscore
```

#### Customizing the Default Application Configuration
The default application settings (database url, http port, etc.) can be changed by updating the [config file] (https://github.com/OWASP/NodeGoat/blob/master/config/env/all.js).
3 changes: 2 additions & 1 deletion artifacts/db-reset.js
Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@ function parseResponse(err, res, comm) {


// Starting here
MongoClient.connect(config.db, function(err, db) {
MongoClient.connect(config.db, function(err, client) {
var usersCol, allocationsCol, countersCol;

if (err) {
@@ -61,6 +61,7 @@ MongoClient.connect(config.db, function(err, db) {
process.exit(1);
}
console.log("Connected to the database: " + config.db);
var db = client.db();

// remove existing data (if any), we don't want to look for errors here
db.dropCollection("users");
Loading