The What’s Fresh API web app is used to enter the data that is displayed in the What’s Fresh Mobile app. It consists of a series of simple forms for each type of object that can be added to the database. Required fields are marked with a *, and any errors or missing items will be flagged when the form is saved. The data will not be saved until errors are corrected.
There are six major objects in What’s Fresh: Vendors, Products, Preparations, Stories, Videos and Images. When you log in to the application, the first screen you see is the Entry screen, which lists the objects. Clicking on one of the object buttons will bring you to a screen listing all of the objects already saved in the system.
For example, clicking Vendors will display a table listing all the Vendors currently in the system. On this screen you can add a new Vendor by clicking the yellow “New Vendor” button at the top of the list, or edit any of the existing Vendors by clicking on that Vendor.
Adding and Editing¶
The forms for editing and for adding new objects are the same, except that the edit form will already be filled out with the existing data. You can edit this data and save the changes using the “Save” button at the bottom of the form, or delete the entire record using the red “Delete” button on the top of the form.
The objects in What’s Fresh sometimes depend on other objects. For example, Vendors need Products, so you can’t add a new Vendor without adding Products first. We recommend the following work flows to add different objects:
- Determine what Preparations are available for this Product (smoked, dried, fresh, etc).
- Create the Preparation objects if they don’t already exist.
- If there is an Image for this Product, create an Image object (be sure to give the image a unique and descriptive name).
- If this Product has a Story, make sure that Story exists (for instance, the Salmon story will probably be shared by all varieties of Salmon).
- Create the Product object, selecting the correct Story and Image, and add each applicable preparation.
- Make sure this Vendor’s Products are added (see above).
- If the Vendor has a Story (rare), create the Story object.
- Create the Vendor object, adding the correct Products and selecting a Story, if applicable.
- If this Story includes Images, create the Images.
- If this Story includes Videos, create the Videos.
- Create the Story object, adding the correct Images and Videos, if applicable.
See below for details on adding these objects.
These are the records for businesses that sell products. Vendors are also specific to a location, so if Bob’s Fish has two different locations where they sell their Products, each location will be a separate Vendor. These can be distinguished by name, for instance Bob’s Fish Newport and Bob’s Fish Waldport.
The address for a Vendor should be the actual location where they sell their Products, not an office or P.O. box.
Vendors sell Products, so in order to create a new Vendor, some Products must exist (ideally, the specific Products that Vendor sells). Before creating a new Vendor, it is a good idea to make sure their Products exist. The Vendor form requires at least one Product to be added to the Vendor. A Vendor’s Product list can be changed later.
Certain information is required to create a new Vendor, make sure you know these items before starting:
- The name of the business.
- The typical hours of operation.
- A brief description of the business.
- The street address where the products are being sold.
- Street Address
- Contact Name
- The primary contact name for this Vendor.
- (At least one product should be added).
When a Product is added, you must also select a Preparation for that product. A vendor may sell different preparations for the same Product, or only one of many possible preparations for a Product. For example, a Vendor may sell smoked, frozen and fresh salmon, and also may sell shrimp, but only frozen, not fresh. Every Product/Preparation combination the vendor sells should be added.
Street addresses are turned into GPS coordinates for display on a map in the Mobile app, so it is important to be accurate.
Additionally, there are several optional fields:
- Select from an existing Story (see the entry on Story objects below)
- In Port
- The current status of the Vendor, if they sell from a boat, or only when the boat is in port. (Not used currently).
- Location Description
- Additional details about how to find the Vendor location (The red boat at the end of Dock 3, for example).
- The Vendor’s website.
- The Vendor’s primary email address.
- The Vendor’s phone number..
Preparations are the way in which a Product can be prepared for sale. This can include fresh, frozen, live, smoked, cooked, dried, and many more.
Preparations have no prerequisites.
Preparations require the following fields to be filled out:
- The name of this Preparation.
These fields are optional:
- A more detailed description of the preparation. For instance ‘Fermented’ might require a little more explanation than ‘Frozen’.
- Additional Information
- Use this field to note additional things a user might need to know about buying Products with this Preparation. For example, fresh fish should be kept in a cooler for a long ride home.
Products are what Vendors sell, and the central Object in What’s Fresh.
Different varieties of a particular product should be treated as separate products, if they are sold as such. For instance, different varieties of Salmon are sold with different prices, therefore Coho, Chinook and Sockeye salmon should be separate products. The ‘Specific Variety’ field of all these Products will be ‘Salmon’, and each will have a different value in the ‘Product Name’ field.
Products require Preparations. Make sure all the possible preparations this Product can have are created first. If an Image or Story is going to be added, these objects should be created before adding the Product.
Products require the following fields to be filled out:
- Specific Variety
- The common name of this Product (i.e. Salmon).
- A brief description of the product.
- The typical season for this Product (ex. ‘Sept. 20 - Dec 20’, or ‘Spring and Fall’).
- Market Price
- The current market price for this Product.
- At least one preparation must be added.
These fields are optional:
- Product Name
- The name of this product (ex. Coho, Sockeye, etc).
- Alternate Name
- Other name(s) this product might be commonly called.
- The geographic origin of this Product.
- Indicate if this product is currently being sold (ex. a fish is available even though its normal season is over).
- A link to an official web site for this Product (ex. National Shrimp Council website).
- A representative image of this Product.
- The Story of this Product (see Stories below).
Stories are collections of educational information about a Product or Vendor. Stories may be shared by many varieties of a particular Product - for instance the Salmon Story will likely apply to Coho, Chinook, and Sockeye salmon, which are all distinct Products.
If Images or Videos are going to be added to this Story, they should be created before the Story is created.
Stories require the following fields to be filled out:
- A name for this story. (This should be unique and easy to identify from the Story pull-down menu on the Product and Vendor forms.)
- A list of facts about the Product or Vendor.
- Text about the history and historical importance of the Product or Vendor.
- (Products only) What to know about buying this Product, (for example: how to select for freshness and quality).
- (Products only) Ways to prepare this Product, recipes and other tips.
- (Product only) Derivative Products made from this Product.
- (Product only) Detailed information about the season for this Product.
- One or more images related to this Product.
- One or more videos related to this Product.
Videos are external links to videos hosted on YouTube, Vimeo, or elsewhere. Any video that can be streamed can be used here.
Videos have no pre-requisites.
Videos require the following fields to be filled out:
- A name for this Video. (This should be unique and easy to identify from the Video pull-down menu on the Story form.)
- The URL for this video (ex. https://www.youtube.com/watch?v=hl3wWwouOUE).
- A brief descriptive caption for this Video.
Videos have no optional fields.
Images are uploaded image files. The Image upload form accepts .jpg, .png, and .gif image files. Images may be displayed as a single representative image for a Product in a Product view, or as part of a slideshow of images in a Story.
Images have no pre-requisites.
Images require the following fields to be filled out:
- Upload an image file.
- A name for this Image. (This should be unique and easy to identify from the Image pull-down menu on the Story and Product forms.)
- A brief descriptive caption for this Image.
Images have no optional fields.