-
Notifications
You must be signed in to change notification settings - Fork 1
Setup Install Guide
Daniel Anner edited this page Apr 10, 2019
·
12 revisions
- Node v10.15.3
- NPM v6.9.0
- forever v0.15.3
- MySQL v8.0.15
- An open port on 4000, and 4001
- Virtualization: xen
- Operating System: CentOS Linux 7 (Core)
- CPE OS Name: cpe:/o:centos:centos:7
- Kernel: Linux 3.10.0-957.10.1.el7.x86_64
- Architecture: x86-64
- run:
mkdir -p /var/www/
- run
mkdir -p /var/www_conf/BunnyAPI
- Clone the repo into /var/www
cd /var/www/ && git clone https://github.com/danner26/BunnyAPI.git
- Install node modules
cd BunnyAPI/backend/ && npm install
- Make your config file
touch /var/www_conf/BunnyAPI/db_conf.js
- Add the following to your config file
module.exports = {
host: 'localhost',
user: 'USERNAME',
password: 'PASSWORD',
database: 'DB_NAME',
secret: 'SECRET_KEY',
};
- Make any further changes to the API code as required
cd /var/www/BunnyAPI/docs
- We recommend you change the API user passwords in the
post.sql
file.. For thebunny_write
user, make sure the password is the same as step #6's password! - Run the setup script as the root user
mysql -u root -p < setup_database.sql
- Start the server and watch the logs
cd /var/www/BunnyAPI && ./start-bunny.sh
- Grab the output of the logs and make sure it is running
cat /var/www/BunnyAPI/backend/logs/API/API.log
- Tail the file, and run the script to test
tail -f /var/www/BunnyAPI/backend/logs/API/API.log
- If the data is added to the table, then you should see something like this:
Added data to table [ { signon_realm: 'https://www.facebook.com/',
username_value: '[email protected]',
password_value: 'Unencrypted_Password' },
{ signon_realm: 'https://www.reddit.com/',
username_value: 'USERNAME',
password_value: 'Unencrypted_Password' } ]
- Check the database!
mysql -u root -p
use bunnyapi; select * from chrome_data;
- Well, make sure you have all prerequisets installed, and please go over the steps again. Please, try the steps again and watch closely for errors. Most errors will tell you exactly what is wrong (like missing modules or a missing file ex. db_conf.js)
- If you are still having issues, feel free to create a new
⁉️ Need help with BunnyAPI? issue and we will try our best to help!