nolim1t / swhk16-alpha

Web app for team Vaultron - Winner of Startupweekend Alpha 2016
https://www.whub.io/posts/w-hub-startup-weekend-alpha-startmeup-and-the-winner-is
0 stars 1 forks source link

Vaultron.co

Wiki pages

What

This is the site (and application for vaultron.co)

Technology stack (so far)

Setting up

ImageMagic Issues on OS X

Auto-review apps

Development Notes

This is some notes on what sort of things you can use.

Templating variables

Getting the current user

current_user.accounttype This gets the current account type which can be:

current_user.identity_verified This shows the verification status for the user. They are either verified or not verified.

Environment variables

Please set the following before you run the app. Heroku is configured already.

Cards model

Related to cards

Each card maintains a history of notes and new images.

The idea is images have a history (not visible)

Cardnotes model

Cardimages model

Cardgame model

How to create

In either rails console or heroku run rails console do the following

Cardgame.create(gamename: "Magic: The Gathering")

Cardcollection model

How to create

In either rails console or heroku run rails console do the following

Cardcollection.create(collectionname: "Default collection")

Cardcondition model

How to create

In either rails console or heroku run rails console do the following

Cardcondition.create(condition: "Mint")
Cardcondition.create(condition: "Slightly Worn")
Cardcondition.create(condition: "Worn")
Cardcondition.create(condition: "Damaged")

Invitecodes model

How to create a record

This will generate 10 random invite codes

10.times {|i| puts Invitecode.create()['code']}