Skip to content

truck-hunters/TruckHunt

Repository files navigation

TruckHunt SF

Browse nearby food trucks in San Francisco; order food ahead of time so that it's ready for pickup when you arrive. Vendors can sign up through our vendor portal to accept payment and manage incoming and past orders.

Video Demo

Homepage Screenshot

Team

  • Matt Schmitz
  • Benicio Peinado
  • Sam Zoll
  • Michael Burton

Table of Contents

  1. Data
  2. Tech Stack
  3. Payments
  4. Database
  5. Testing
  6. Requirements
    1. Installing Dependencies
  7. Contributing
  8. License

Data

Truck schedules and permit information comes from SF Open Data, which publishes a variety of data for mobile food vendors in SF.

If you are interested in testing and developement you can find sample data in JSON format within database/data. Once you have installed PostgreSQL you must seed the database.

Tech Stack

Payments

This application utilizes the Stripe API to allow payments for both vendors and customers. Stripe allows charging and paying customers in a variety of formats without payment information ever touching the server; https encryption is all that is required. For those interested in using this repo for their own project please register your app with Stripe to obtain your own API keys, which you can store in your .env file (private keys) and in the webpack environmentplugin (public keys).

Database

This application uses a PostgreSQL database to access vendor and customer information.

To install postgres locally on OSX:

brew tap homebrew/services
brew install postgres
brew services start postgresql
createdb toads

Once you've created your db run "npm run start-dev" to create all the db tables. Next navigate to the seedDatabase folder and run

node seedVendors.js
node seedSchedules.js.
node seedMenus.js
node seedReviews.js.  

This will populate your local db with real food-truck data and allow trucks to properly rendor on the map. The menu and review data is dummy data as we are currently building out functionality to allow vendors to upload their menus and customers to review trucks.

If you decide to modify the schema you will need to run

dropdb toads

followed by the steps above, before continuing.

Testing

From within the root directory:

npm test

Requirements

  • Node 6.4.x
  • Express 4.x
  • Webpack 2.x

Installing Dependencies

From within the root directory:

npm install

Contributing

See CONTRIBUTING.md for contribution guidelines.

License

MIT

About

Locate and order from nearby foodtrucks

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages