Gems Needed: gem "sinatra-activerecord" gem "sqlite3" gem "pry" gem "require_all" gem "faker" gem "colorize"
Run bundle install
in your terminal.
To seed the databse with the inital data run rake db:seed
in your terminal. (This will take ~ 20 min, here are some videos to watch while you wait: https://www.youtube.com/results?search_query=ufo+sightings 🛸)
Run ruby bin/run.rb
in your terminal to run the app.
The following is a menu of commands that you can enter in your terminal and their description:
COMMANDS: DESCRIPTION:
report : report a UFO sighting, find : search for sightings by location, shape, or date, my sightings : displays your UFO sightings, edit : edit one of your UFO sightings, delete : delete one of your UFO sightings, disappear : delete your username and all of your sightings, help : displays the menu, exit : exits the program
You can also force quit the program with 'CTRL-c' at any time.
RE-SET DATABASE
If you would like to delete all of your database data and then repopulate it, first run the following two lines of code in 'rake console' in your terminal:
User.delete_all
ActiveRecord::Base.connection.execute(“DELETE from sqlite_sequence where name = 'users’”)
Then, un-comment out lines 11-12 in the seeds.rb file and run rake db:seed again.
A new user can be created.
An existing user can log back in to their username.
A sighting can be reported.
A user can view a list of all their reported sightings.
Sightings can be looked up by date.
Sightings can be looked up by shape.
Sightings can be looked up by location.
A user can select a sighting to edit from their list of reported sightings.
The date of sightings can be edited.
The location of sightings can be edited.
The shape of sightings can be edited.
A user can choose a sighting to delete from their list of reported sightings.
A user can 'disappear' which will delete their username and all of thier reported sightings.
Kyle Conlon
Adrienne Miranda
UFO sighting data was provided by: https://www.kaggle.com/NUFORC/ufo-sightings
👽🛸👽