flatornot

command module
v0.0.0-...-e666526 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

README


Logo

Is Earth Flat or Round? The Ultimate Showdown!

A website where people can vote if the earth is flat or not!

View Website · Report Bug · Request Feature

About The Project

Screenshot

FlatOrNot - The Great Debate

Introduction

Welcome to FlatOrNot, the ultimate battleground for one of humanity's most profound debates: is the Earth flat or round? Yeah, you read that right. One day, while casually browsing the depths of the internet (as one does), I stumbled across an article that blew my mind. Apparently, there are actual people who think the Earth is flat. Yup, flat—like a pancake. Naturally, I was like, “Wait, what? This can't be real.” But oh, it’s real, folks.

So, after reading way more about this flat Earth theory than I care to admit, I decided it was time to take action. No, not by launching a space mission to see the curve for myself (though that would be awesome), but by creating this website where people can cast their votes and settle this once and for all.

The Mission

The mission of FlatOrNot is simple:

  • Is the Earth flat?
  • Is it round?

That’s it. Two options. Vote your heart out and let’s see where you land (pun intended).

How It Works

You head over to the site, you take a deep breath, and then you make your choice. Flat? Round? Maybe you’re unsure and want to see how others have voted first. Whatever your stance is, this is your chance to let the world know your thoughts (no space travel required).

Why Did I Make This?

Well, apart from being slightly obsessed with quirky internet topics, I figured this could be a fun way to engage with the age-old “debate” that somehow still exists. Plus, it's hilarious to see the vote split. We’re here for a good time, folks.

Also, I love exploring new stuff, and this project gave me the perfect excuse to try my hands on Server-Sent Events (SSE). Yeah, that's right—real-time updates. I wanted to keep things dynamic and exciting, because what's better than watching live votes roll in while people decide if we're living on a giant pizza or a big, blue marble?

(back to top)

Getting Started

Prerequisites
  • go
How to run
  1. Clone the repo
    git clone https://github.com/colt005/flatornot.git
    
  2. Set the following envs
    • LISTEN_ADDR - PORT that you want the server to run on
    • Database variables - self explanatory
      • DB_HOST
      • DB_USER
      • DB_PASS
      • DB_NAME
      • DB_PORT
  3. RUN!
    go run main.go
    
Using Docker
  1. To start
docker-compose up -d
  1. To stop
docker-compose down -v

(back to top)

Roadmap

  • Add sessionID for each unique browser session
  • Store these sessionIDs locally for reuse
  • Sync the votes with DB

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Make sure your commit has an emoji in it LOL Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m '✨ Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the GNU GENERAL PUBLIC LICENSE. See LICENSE for more information.

(back to top)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL