Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 1.31 KB

GettingStarted.md

File metadata and controls

51 lines (32 loc) · 1.31 KB

Getting Started

Pre-requisites

To develop / deploy Slate you will need the following:

Production deployments will additionally need:

Compiling Slate

Please make sure to export JAVA_HOME to the install location of your JDK

git clone https://github.com/pinterest/slate.git
cd slate
mvn clean package -DskipTests

Setting Up Database

Please note that the configuration below must match that of dev-config.yaml file; please change the credentials for production use and make sure to update the config file accordingly.

Step 1: Login to MySQL shell with root password and run (deploy/tables.sql)

Step 2: Now setup a user to grant access to Slate process (localuser.sql)

CREATE USER 'slateuser'@'localhost' IDENTIFIED BY 'slate1_passWord';
GRANT ALL PRIVILEGES ON slate.* TO 'slateuser'@'localhost';

Running Server

Please run setup.sh before running the server using run_slate.sh

The setup.sh file only needs to be run once for a brand new instance.

deploy/setup.sh
deploy/run_slate.sh