Watch live here ➡️
- Keep a record of the cities you've explored worldwide.
- Choose cities effortlessly through an interactive map interface.
- Log the date of your visit and add personalized notes.
- Build Tool: Vite for efficient project building.
- Map Integration: Utilizes Leaflet and React Leaflet for the interactive map.
- React Router to implement routing.
- This project uses Netlify functions to create an API endpoint to get the required data, post new data and delete existing entries.
- To run the project locally, I have used
json-server
node package.
Make sure node
and npm
are installed. Run the following command in the terminal:
npm i
ornpm install
npm run dev
- Open a new terminal and enter
npm run server
command. - To run locally: Copy
CitiesContextLocal.jsx
insidedata/
tosrc/contexts
and rename it toCitiesContext.jsx
(replace any existing files). - To set up Netlify Functions for deployment on Netlify: Copy
CitiesContextNetlify.jsx
insidedata/
tosrc/contexts
and rename it toCitiesContext.jsx
(replace any existing files).
Note: The foldernetlify
and the filepublic/_redirects
are necessary for the app to work when deployed on Netlify.