Skip to content

The Place Picker Application is a web application built using React that allows users to choose their favorite locations from a predefined list and add them to a "want to visit" section.

License

Notifications You must be signed in to change notification settings

MarcoBasileDev/React-Place-Picker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

React Place Picker App

React JavaScript Vite HTML5 CSS3 NodeJS Express.js GitHub License

Overview

The Place Picker Application is a web application built using React that allows users to choose their favorite locations from a predefined list and add them to a "want to visit" section.

This project consists of two versions:

  • Version without Backend: A frontend-only implementation where user interactions and data management are handled within the client-side application.
  • Version with Backend: A version that includes a backend server to manage data persistence and interactions with the client.

Features

  • Utilizes browser methods such as navigator and geolocation to sort locations based on their proximity to the user.
  • Demonstrates the use of useEffect hook for managing side effects.
  • Utilizes useRef hook for accessing DOM elements and maintaining mutable references.
  • Incorporates a backend server to handle data storage and retrieval.
  • Implements custom hooks for modularizing and reusing logic.
  • Makes HTTP requests to the backend server for CRUD (Create, Read, Update, Delete) operations on location data.

Setup and Installation

Backend version

  • Before running the development server go inside the backend folder and install the dependencies: npm install
  • Then run the backend server: node app.js

Techonlogies Used

  • Frontend: React, JavaScript, HTML, CSS
  • Backend: Node.js, Express.js
  • Data Persistence: Dummy JSON database

Why Two versions?

The decision to create two versions of the Place Picker Application was driven by learning objectives and project scope:

  • Version without Backend: This version was developed primarily for practicing client-side techniques and understanding browser APIs. It serves as a learning exercise for utilizing navigator, geolocation, and React hooks like useEffect and useRef for managing state and side effects without relying on a backend server.

  • Version with Backend: By adding a backend server, the project expands to cover full-stack development concepts. This version allows for a deeper exploration of HTTP requests, data persistence, and server-client communication. It serves as a platform to practice integrating frontend and backend components seamlessly.

Contributing

Contributions are welcome! Feel free to submit issues or pull requests for any enhancements or bug fixes.

License

This project is licensed under the MIT License.

About

The Place Picker Application is a web application built using React that allows users to choose their favorite locations from a predefined list and add them to a "want to visit" section.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published