git clone https://github.com/pear25/tech_FE.git
cd tech_FE
npm install
npm run dev (start on localhost:5173)
npm run build
npm run preview
-
Go to the Google Maps Platform > Credentials page.
-
On the Credentials page, click Create credentials > API key. The API key created dialog displays your newly created API key. Click Close.
-
The new API key is listed on the Credentials page under API keys.
-
Replace newly generated key with "YOUR_API_KEY_HERE" in line 99 (/src/components/Map)
HOSTED AT: https://tech-fe.vercel.app/ --> still not working due to internal server issues
API IS STILL USING (http://localhost:8080; see below)
I have encountered some issues when using the mock api provided (https://mock-api.dev.lalamove.com)
And so, I have used the localhost URL (http://localhost:8080) instead of the remote URL:
I have defined the usage of the remote URL at /src/api/index.js
but I have used localhost:8080 instead as seen in /src/components/Form.jsx
GET REQUEST --> see Line 35 & 36
POST REQUEST --> see Line 66 & 67
On another note, Polyline removal works in production build but not dev mode