Skip to content
The post-modern tarot lady
PLpgSQL HTML JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public
src
tests
.gitignore
README.md
package-lock.json
package.json

README.md

DENK Tarot

Install

Refer to https://github.com/fac-17/DENK/wiki/Installation

User Journey

User visits a page and chooses his fate card, clicking on it. User is then transferred to a tarot reading side and can see the card and the description.

Tech Stack used

  • Express.js - server
  • Handlebars - template engine
  • Postgres - database
  • Tape, Supertest - testing
  • GitHub Project, Wiki

Cool things we've discovered

  • We wanted to get random data from our database - we knew we could call our whole database and then use math.random to get a random one, but the challenge was to just query the database for a random entry. We managed to do this by using ORDER BY RANDOM() LIMIT 1

  • To output raw HTML use {{{}}}, which is how {{{body}}} works. Eg. {{{tarot.image}}} will render content of tarot.image as html (in our case SVG)

  • TEXT in Postgres is like VARCHAR but without limiting length

  • Before you play with SVG, read on them

  • How to use Whimsical

    • to create flows

  • to wireframe

  • Github Project

  • GitHub Wiki

https://github.com/fac-17/DENK/wiki

You can’t perform that action at this time.