Skip to content

Berserk-Worms/BuckleyBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BuckleyBot

Bot Demo

Installation steps

Project dependencies

# server side dependencies
npm install

Database setup

Install Postgres with Homebrew:

# update brew
brew update

# install postgres
brew install postgresql

Running the Application

Local development

It may be helpful to have one terminal tab open per process

  1. start the local postgres server:
  • npm run dev:startdb
  1. run the build process to bundle server files and transpile code
  • npm run dev:buildserver
  1. run the (node) server from the root directory of this project
  • npm run dev:start
  1. run the build process to bundle client files and transpile code
  • npm run dev:watchClient

Local bot testing

It is required to have multiple tabs open

  1. start the local postgres server:
  • npm run dev:startdb
  1. Drop current database (uncle) by starting another database:
  • psql anotherdatabase Within the database:
  • drop database uncle
  1. Create a new database (uncle) and start:
  • createdb uncle
  • psql uncle
  • \c uncle
  1. run the build process to bundle files and transpile code
  • npm run dev:buildserver
  1. run the (node) server from the root directory of this project
  • npm run dev:start
  1. Multiple saves might be required to generate all tables in database
  • command + s in sublime
  1. Drop the current App in slack.com/apps under manage tab. Click Remove App
  2. Add the app
  3. Run node server/dist/utils/jobScraper.js to add jobs to database
  4. Interact with the bot

Releases

No releases published

Packages

No packages published