Giter Site home page Giter Site logo

zeeshanalam39 / pinia-restaurants Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sandrarodgers/pinia-restaurants

0.0 1.0 0.0 100 KB

An example app using Vue 3, Pinia, and the Google Maps API

JavaScript 52.58% CSS 8.96% HTML 0.99% Vue 37.46%

pinia-restaurants's Introduction

Pinia-Restaurants

An example project using Vue 3's Composition API, Pinia, and Google Maps API

Get it Working

To see this project working, you can clone the project and then do the following.

Install dependencies

npm install

Create .env file

Create a .env file at the root of the project and then go into the .gitignore file and add .env to the list. This will make sure that the .env file does not get pushed up to github if you choose to push the project up to github

Create a Google Maps Platform Account

You will need to create this account to get the API key to use the Google Maps and Google Places APIs.

Go to https://developers.google.com/maps.

In the left sidebar, click on APIs

Enable billing for the project. You will need to add a credit card. Google will give you $200 of free credits to use. It's recommended that you set up your account so that you receive a notification if you pass a certain amount spent. The $200 goes far, but it's better to be careful.

To create a project, click "Get Started" and then tick "Maps" and "Places" so you can use both those APIs.

Get your API key.

Once you have your API key, add it to the .env file as GOOGLE_MAPS_API=your_api_key

Give your browser permission to use geolocation data

To see the project working correctly, you must give your browser permission to use your location data.

When you first run the project, the browser should give a pop-up window that asks permission to use your location. Be sure to give it this permission.

If you don't see the pop-up, then you'll need to go into the settings of your browser and set it to have permission to use your location.

Questions

If you have any questions, you can reach out to me on twitter

pinia-restaurants's People

Contributors

sandrarodgers avatar

Watchers

 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.