This is a fork of NodeGoat Project.
Please follow these steps to setup and run it locally -
-
Install Node.js - NodeGoat requires Node v4.4 or above
-
Clone the github repository
git clone https://github.com/natanaeladit/nodegoat
*go to the directory
cd nodegoat
- Install node modules
npm install
-
Create Mongo DB: You can create a remote MongoDB instance
- Using Remote MongoDB
- Create a sandbox mongoDB instance (free) at MongoLab
- Create a new database.
- Create a user.
- Update the
db
property in fileconfig/env/development.js
to reflect your DB setup. (in format:mongodb://<username>:<password>@<databasename>
)
- Using Remote MongoDB
-
Populate MongoDB with seed data required for the app
- Run the npm-script below to populate the DB with seed data required for the application. Pass the desired environment as argument. If not passed, "development" is the default:
npm run db:seed
- Start server, this starts the NodeGoat application at url https://localhost:4000/
npm start
- Login
- Admin Account - u:admin p:Admin_123
- User Accounts - (u:user1 p:User1_123), (u:user2 p:User2_123)
Code licensed under the Apache License v2.0.