# bucky ## Install ### osx ``` npm install brew install mysql (used for main database) brew install mongodb (used for sessions) ``` ### MySQL ``` mysql -uroot CREATE USER 'carbon'@'localhost' IDENTIFIED BY 'the_password'; CREATE DATABASE bucky; USE bucky; GRANT ALL PRIVILEGES ON bucky.* TO 'carbon'@'localhost'; ``` Copy .env-sample to .env and edit the values accordingly. #### Loading an old bucky db dump ``` mysql -u carbon -p bucky < bucky-20150903.sql ``` ### MongoDB Mongo is only used for session management and will ideally be replaced. ### Berkeley DB Used for the search, `libdb` should already be installed on your system. ## Building the search index This script should be run regularly to keep the search index fresh: ``` npm run build:search ``` ## Running You may have to include the .so files for bdb: `export LD_LIBRARY_PATH=/var/www/bucky.asdf.us/bucky3/node_modules/berkeleydb/lib` ``` npm start ``` Server will be running at http://lvh.me:5000/