Skip to content

rebecacalvoquintero/thehoax

 
 

Repository files navigation

Build Status

Tinfoil

Why?

have you ever wondered if something is true but been too embarrassed to ask your friends?

Here's some of our concerns:

Are all politicians really lizard people?

The moon landing was fake!

Giant cat aliens build the pyramids

The earth is flat!

Is Abdullah a spy?

User Stories

As a user I want to:

  • Have a secure login so the government can't track my conspiracies
  • Enter a theory I want information on
  • Recieve information on my theory to read more into peoples' views
  • View other users' theories who are using the site
  • (stretch) Be able to comment on other people's theories
  • (stretch) Fake social media sharing icon that send back warnings

What

Our site allows authorised user to enter into Tinfoil'd via a username, email and password and takes them to the conspiracy hub. Here you can see conspiracies that people have searches for and enter your own theories. In release 2.0 you will be able to search for conspiracies through the Hoaxy API to receive information on your theory.

How?

  1. Skeleton files and basic HTML outline
  2. Build databases...

Database Schema

users

Column Type Modifiers
id Serial Primary Key
username VARCHAR(100) not null
email VARCHAR(100) not null
hash VARCHAR(100) not null

history

Column Type Modifiers
id Serial Primary Key
userid int4 REFERENCES users(id)
searchdate timestamp not null
search VARCHAR(100) not null
  1. create handlers, server, router
  2. Make amazing waterfall function to validate login with hashy salts
  3. Tests!
  4. Front end validation
  5. Render database on '/tinfoild'
  6. Check if cookie exists and redirect (so no login required) * Coming soon *
  7. Be able to enter your own searches, render on page and store in database
  8. Be able to search for articles related to your conspiracy theory

Learnings

  • Waterfall functions
  • How to have multiple pages on a site
  • Authentication

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 74.2%
  • HTML 11.7%
  • PLpgSQL 9.4%
  • CSS 4.7%