Rebuild-Black-Business / RBB-Website

Website to help connect black-owned businesses with consumers and resources
https://www.rebuildblackbusiness.com/
MIT License
119 stars 72 forks source link

Add individual pages for each business listing #268

Closed magnificode closed 3 years ago

magnificode commented 4 years ago

Prerequisites

Designs

https://www.figma.com/file/Lo1ZcBOO9t4QRbX2I0PwBQ/RBB?node-id=2135%3A1 https://www.figma.com/file/Lo1ZcBOO9t4QRbX2I0PwBQ/RBB?node-id=2135%3A363

The Problem

Currently users are only able to explore businesses found on the RBB site by the small amount of information we provide on the ResultCard components. We want to enable businesses to provide a wider range of information that we can leverage on a 'profile' page for each business.

The Solution

We need to dynamically create a "Business Profile" template for each business in the database. Additionally, we need to conditional all the things to account for our legacy data that will have much of this data missing, or incomplete. The page needs to be flexible enough to account for if the majority of this information is not available.

elchris commented 4 years ago

For calling the API:

in the search results, you will notice that each record has a field called "id" which is an integer.

this is the field that you can plug into an individual business data request:

https://api.rbb-api.com/api/v1/businesses/13557 (add your apiKey to this url ?apiKey=)