Skip to content
This repository was archived by the owner on Jun 9, 2021. It is now read-only.

Latest commit

 

History

History
52 lines (34 loc) · 1.15 KB

README.md

File metadata and controls

52 lines (34 loc) · 1.15 KB

HotFrameworks

Pulls statistics about web frameworks daily. It uses an unusual approach with a Clojure web app that doesn't serve traffic directly, but instead is queried by a scheduled job that uploads the HTML and assets to an S3 bucket.

Development

Prerequisites:

Installing:

git clone [email protected]:bruz/hotframeworks.git
cd hotframeworks

# Assuming no database password
createdb hotframeworks
psql hotframeworks < database/schema.sql

cp .lein-env.example .lein-env

Modify the configuration in .lein-env. AWS credentials are only necessary for publishing to S3.

Loading schema.sql only provides the database schema. In order to import statistics for some actual frameworks, adding some records to the languages and frameworks tables is required.

Import statistics from GitHub and Stack Overflow:

lein repl

In the REPL:

(require '[hotframeworks.models.statistic-set :as stats])
(stats/pull-and-save!)

Run the web app to test it locally:

lein ring server

Pull statistics and publish to S3

lein run