achiku / redash-tips

sql tips

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

redash-tips

basics

  • Python (2.7)
  • PostgreSQL (9.3 or newer)
  • Redis (2.8.3 or newer)
  • Node.js (v6 or newer)

create db

-- as root
create user redash;
create database redash;
grant all on database redash to redash;
-- as root
create user coolec;
create database coolec;
grant all on database coolec to coolec;
-- as coolec
create schema coolec_api authorization coolec;
# create .env file and put the following before running create_tables script
export REDASH_DATABASE_URL="postgresql://redash@localhost:5432/redash"
bin/run ./manage.py database create_tables

start services

./bin/run ./manage.py runserver --debugger --reload
./bin/run celery worker --app=redash.worker --beat -Qscheduled_queries,queries,celery -c2
npm run start

create dummy data

About

sql tips

License:MIT License