- Go to Google Cloud Console
- Add billing method
- Add a new project
- Fill in the information in the project
- Select APIs & Services -> Credentials.
- Create Credentials -> Copy Your API Key -> select Restrict Key
- Go to the newly created project -> APIs & Services -> Go to Library -> Import libraries -> Enable. 8.Check if the library has been installed successfully or not
Create an API in the google developers console https://console.developers.google.com, make sure to enable billing for the google project, otherwise you may get a warning as development purposes only.
In .env.localin the project root and specify your API key as
REACT_APP_GOOGLE_MAPS_API_KEY="YOUR_API_KEY"`
In the project directory, you can run: using npm
npm install
npm start
Justtuananh, Duyvuleo
KhangHuyn, 2P