Skip to content

Ruby on Rails API only backend. Covid Chaos was my Mod 3 project at Flatiron School. It was the end of February 2020 when Flatiron School and many other companies sent their teams to work from home to self isolate. Toilet paper, and other essential items like hand sanitizer, became scarce as well as decency during the uncertain times. I knew I w…

Notifications You must be signed in to change notification settings

codetombomb/covid-chaos-api

Repository files navigation

🦠 Covid Chaos API 🧟‍♂️

Contents


  • Introduction
  • Installation
  • Running the local server
    • Stopping the local server
  • Routes

👋🏼 Introduction


Current Maintainer: Tom Tobar [email protected]

Covid Chaos API was my Mod 3 project at Flatiron School. It was the end of February 2020 when Flatiron School and many other schools sent thier students to work from home and self isolate. Toilet paper, and other essential items like hand sanitizer, became scarce as well as decency during the uncertain times. I knew I wanted to create a game for the project and thought that it would be a good distraction, to the madness unfolding around me, to tie the theme of the game to the chaos. This is what I had in mind:

Keynote Mock Up

This is a screen shot of a keynote presentation that I created for the pitch to my instructors. I originally thought that there might be monsters coming from the bottom of the canvas element to attack the player and covid viruses raining from above. The gameplay now has monsters and viruses both rainging from the top of the screen.

The goal of the game is to collect as much hand sanitizer and toilet paper as possible to earn a slot in the Top 5 scores:

  • TP = 10 points
  • Sanitizer = 5 points
  • Bonus points: 1 bonus point for each second after 30 seconds.

    For the Rails backend, I wanted to keep it simple. Here is a wire frame with what I had originally planned:

    Wire Frame

    I wanted to have a player potentially sign up with username and password (and did implement that for the project) but ended up going old school with just an entry of the player name. Here is a look at the user story:

    User Story

    This game was a labor of love for me and I will constantly make improvements to learn something new from it.

🛠Installation


  • This Rails API was built with a PostgreSQL database and requires ruby-2.6.1 or later
  • Clone the repo onto your local machine
    • CD (change directory) into the cloned directory
    • run the following commands:
    • bundle install
    • rails db:create
    • rails db:migrate
    • rails db:seed

🏃🏽‍♀️ Running the local server


  • To run the API on a local server, run the command:
    • rails s -p 3001 (running on port 3001)
  • Open Google Chrome and paste this in the URL bar:

🛑 Stopping the local server


  • To stop a running local server, press:
    • control + c

🛣 Routes


About

Ruby on Rails API only backend. Covid Chaos was my Mod 3 project at Flatiron School. It was the end of February 2020 when Flatiron School and many other companies sent their teams to work from home to self isolate. Toilet paper, and other essential items like hand sanitizer, became scarce as well as decency during the uncertain times. I knew I w…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published