Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

cse1110/analytics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

analytics

Analytics is a Spring Boot application that receives POST request from Andy and stores them in a database for visualizations using Redash.

Docker

Install

Install Docker Engine and Docker Compose.

Clone the repository.

Make a directory called postgres-data.

Create a file called env and put following variables.

PYTHONUNBUFFERED=0
REDASH_LOG_LEVEL=INFO
REDASH_REDIS_URL=redis://redis:6379/0
POSTGRES_PASSWORD=<your database password>
REDASH_COOKIE_SECRET=<your cookie secret>
REDASH_SECRET_KEY=<your secret key>
REDASH_DATABASE_URL=postgresql://postgres:<your database password>@postgres/postgres

Run docker-compose run --rm server create_db.

Run docker-compose run --rm postgres psql -h postgres -U postgres -c "CREATE DATABASE analytics;".

Deploy

Run docker-compose up -d.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •