A web portal for AgentSimJS
- NodeJS & npm
- MongoDB
- AgentSimJS
Install NodeJS and npm
$ curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh
$ ./nodesource_setup.sh
$ sudo apt install nodejs
Install MongoDB
$ sudo apt install mongodb-server
Download AgentSimJS, go in the directory project and run:
$ git submodule init
$ git submodule update
Copy the file config.js.dist into config.js and configure it like:
module.exports = {
'secret': 'your_secret_string',
'database': "mongodb://localhost:27017/db_name",
'email': '[email protected]',
'password': 'password',
'home_path': 'http://localhost:8080'
};
Run your application:
$ node server.js
Now you can visit http://localhost:8080/ and see the output of the project!