Giter Site home page Giter Site logo

364midterm's Introduction

364midterm

si 364 midterm project — Gas Station Locator

####Important: This app needs a Google Places API key in order to run properly! If there is no API key, it will not work.####

This app takes in a location and brand of gas and then looks up gas stations in that locale using the Google Places API. You have the option of just searching for gas stations in general by simply typing "gas station" and not specifying the company. You also have the option of leaving comments about any of the individual gas stations via a form that allows you to input the name of a gas station, it's rating out of 5 stars, and then any comments you might have.

There are three tables in the database: a table for locations (broader city), a table for the individual gas stations, and a table for user comments and opinions. There is a one to many relation between the locations table and the gas stations table, because one location can have many gas stations. However, any given individual gas station will only have one location.

view functions

  • / the main page of the app. The main form where you can input the location/city you want to search for and either the brand of gas station or just "gas station"
  • /results after you fill out the main form, you should be automatically redirected here. This page shows you the results of your search. (ie. 20 results max regarding what you searched for)
  • /all_gas this page shows you all of the gas stations currently in the database right now.
  • /all_loc shows you all of the locations in the database.
  • /opinion is the page with a second form that allows the user to input any of their opinions.
  • /opinionresults this page shows you the opinion that you have just inputted.
  • /all_ops this page shows you all of the user opinions currently stored in the database.

####routes and templates####

  • / — index.html
  • /results — results.html
  • /all_gas — stations.html
  • /all_loc — searchedlocations.html
  • /opinion — opinion.html
  • /opinionresults — opinionresults.html
  • /all_ops — allops.html

364midterm's People

Contributors

prosams avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.