An application to visualize and search users based on their locations using React, Node.js, and PostgreSQL with full-text search capabilities.
You will need to have Node.js and npm/yarn installed on your machine.
-
Clone the repository to your local machine:
git clone https://github.com/oleksii-sytar/user-location-map.git
-
Navigate to the backend folder and install the dependencies:
cd backend
npm install
oryarn install
-
Create a .env file in the backend folder with the following content:
DATABASE_URL=your-url
-
Navigate to the client folder and install the dependencies:
cd ../client
npm install
oryarn install
-
Create a .env file in the client folder with the following content:
REACT_APP_GOOGLE_MAPS_API_KEY=your-key
-
To run the backend server, navigate to the backend folder and run:
npm run dev
oryarn dev
-
To run the client application, navigate to the client folder and run:
npm start
oryarn start