Recreation of z.co.nz/find-a-station with design from the Mission Ready UX team.
Built with:- Javascript React (Vite)
- Node.js (Express)
- MongoDB
- Node.js version 20+
- MongoDB with mongosh installed
- A google cloud account with Google Maps Platform API key enabled
- Clone the repo
- cd ./seed-data
- npm i
- node seedStations.js
- node seedGeocodes.js
- in monogosh
- db m5
- db.createView("stations-geocode", "stations", [ { $lookup: { from: "geocodes", localField: "title", foreignField: "key", as: "geocodeData" } }, { $unwind: "$geocodeData" }, { $addFields: { location: "$geocodeData.location" } }, { $project: { geocodeData: 0 } } ] )
- cd ../backend
- create .env file with GOOGLE_MAPS_API_KEY=YOUR_API_KEY
- cd ../frontend
- create .env file with VITE_API_KEY=YOUR_GOOGLE_MAPS_API_KEY
- cd ../backend
- npm start
- in new terminal: cd ./frontend
- npm run dev
- Dan, Liam, Natalia from Mission Ready
- react-select library