Git Product home page Git Product logo

book-librarj's Introduction

Book Librarj Screenshot

Book Librarj

A half-baked, over-engineered, well-thought-out small web application, made at the 7/10/16 Clojure Hackathon @ Siili, by Fabrizio and Jouni, with the help of lots of coffeine.

Its main purpose is to allow the management of a (physical) book library, with a nice view and the ability to search through the titles. We started from the images in this S3 bucket and some relational data about the books.

No technology was harmed during the hackathon. However, we got to play with lots of nice shiny stuff: re-frame 0.8 for a Reactive and buzzword-compliant SPA, re-com for ready-made fresh Reagent components, Postgresql full text search, jq to hack with json on the command line, AWS Elastic Beanstalk + Docker for fast Cloud deployments, AWS CloudFormation and Infrastructure as code, System for a fast REPL-driven-development...

How to run the thing

0. Get lein, psql, and you may want docker too.

Dev environment

  1. Run a database istance with ./scripts/create-dev-db (warning: uses docker)
  2. Migrate the data into it with ./scripts/migrate
  3. In a terminal start figwheel: lein figwheel
  4. In another terminal start a repl with lein repl and then type (start) into it (or connect with your editor!)
  5. Navigate to localhost:3000, start hacking!

Production environment

  1. Run a PostgreSQL database somewhere
  2. Put the coordinates of the database in credentials.sh
  3. Migrate the data into it with ./scripts/migrate
  4. Build the production clojurescript and start the service with ./scripts/deploy-prod

AWS Deploy

WARNING: EXPERIMENTAL

  1. Create the RDS database with ./scripts/run-cloudformation
  2. Wait until it's created. Then get its coordinates with ./scripts/read-cloudformation
  3. Put this data and some ElasticBeanstalk-enabled IAM credentials in credentials.sh
  4. Insert data into RDS instance by running ./scripts/migrate
  5. Run the service on ElasticBeanstalk with ./scripts/deploy-aws

book-librarj's People

Contributors

f-f avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.