Skip to content

melvinthemok/wherework

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

389 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codeship Status for benedictkohtc/WDI-Project3-WhereWork

wherework

This version of our app shows you the nearest places to work within 400 metres of your current location. Users can toggle filters such as the availability of seats, wi-fi, coffee, power sockets, etc. Users can also search for places around another location.

Imgur

Getting Started

Database Setup

Setup Postgres

Setup DB username (and password)

config>database.yml

default: &default  
    username: postgres
Location Seeding from Google Places

Uses HTTParty gem for making requests. Task file is in lib\tasks\seed_from_google_places.rake

To seed, type rails seed_from_google_places. and then 'rails add_opening_times'. You will need a Cloudinary account with your cloudinary.yml in /config. To clear all Cloudinary images from your account (warning will delete ALL your images), run 'rails delete_all_cloudinary_images'.

Rails DB seed file has been populated using the seed-dump gem.
Type rails db:seed to use it.

Environment Variables Setup

Devise Secret Keys

These secret keys are used for verifying the integrity of signed cookies used by Devise.
Use rails secret to generate your own secure secret key.

config>secrets.yml

development:
  secret_key_base: <insert_secure_key_here>

test:
  secret_key_base: <insert_secure_key_here>

production:
  secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
Figaro Gem Setup

Type bundle exec figaro install to create config\application.yml and auto add it to .gitignore. Note that this may create duplicate entries in .gitignore

Add Twillio ENV vars to Figaro

TWILIO_SID: Twilio Account SID
TWILIO_AUTH_TOKEN: Twilio Auth Token
TWILIO_NUMBER: Assigned Twilio Number
Note: All phone numbers need to have country codes!

config\application.yml

TWILIO_SID: <insert_SID>
TWILIO_AUTH_TOKEN: <insert_tuth_token>
TWILIO_NUMBER: <insert_twilio_number> (in single quotes!)

How to Use

See the places to work around your current location displayed on the Google Map, or those around another location you can search for in the search bar.

Toggle the various filters to refine your search.

alt tag

alt tag

alt tag

alt tag

Tests?

Live Version

The app is available here.

Built With

Workflow

Authors

Post Mortem

## Acknowledgements

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 90.5%
  • HTML 5.5%
  • JavaScript 3.3%
  • Other 0.7%