Skip to content

f0lio/humaps

Repository files navigation

[HuMaps, Discover people through maps]

HuMaps lets you discover people in a little different way; using maps.

Search for developers: Insert app screenshots

Click on one from the map or the sidebar Insert app screenshots

How it works

You search for someone (or more) using their name or occupation. Then you instantly get results on a list and on maps using those peoples' coordinates.

Made with NextJS for both Frontend and the Backend (next-api).

How the data is stored:

I used Redis as the main database, thanks to RedisJSON. I have a single Schema which has all the needed fields for each user.

How the data is accessed:

I used RedisSearch to perform smart assisted lookups. I try to match the search input with users bios (descriptions). Then get a list of those users and render it.

How to run it locally?

Prerequisites

You only need Node [v16.13.2]

Local installation

Create an .env.local with the following variables

NEXT_MAPBOX_PUBLIC_TOKEN REDIS_URL=

install dependencies:
yarn install

Run development mode
yarn dev

Deployment

To make deploys work, you need to create free account on Redis Cloud

Google Cloud Run

Insert Run on Google button

Heroku

Insert Deploy on Heroku button

Netlify

Insert Deploy on Netlify button

Vercel

Insert Deploy on Vercel button

More Information about Redis Stack

Here some resources to help you quickly get started using Redis Stack. If you still have questions, feel free to ask them in the Redis Discord or on Twitter.

Getting Started

  1. Sign up for a free Redis Cloud account using this link and use the Redis Stack database in the cloud.
  2. Based on the language/framework you want to use, you will find the following client libraries:

The above videos and guides should be enough to get you started in your desired language/framework. From there you can expand and develop your app. Use the resources below to help guide you further:

  1. Developer Hub - The main developer page for Redis, where you can find information on building using Redis with sample projects, guides, and tutorials.
  2. Redis Stack getting started page - Lists all the Redis Stack features. From there you can find relevant docs and tutorials for all the capabilities of Redis Stack.
  3. Redis Rediscover - Provides use-cases for Redis as well as real-world examples and educational material
  4. RedisInsight - Desktop GUI tool - Use this to connect to Redis to visually see the data. It also has a CLI inside it that lets you send Redis CLI commands. It also has a profiler so you can see commands that are run on your Redis instance in real-time
  5. Youtube Videos