Skip to content

ddon-90/demo.football-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Name:

Football App

Description:

Example of custom front-end component fetching data from an external source (Sportmonks) manageable via VTEX CMS (Site Editor).

Proof points:

  • Front-end customization
  • Site Editor integration (CMS)
  • External API calls
  • GraphQL on VTEX IO
  • Admin extension
  • App settings

How to demo:

  1. Clone/Download this repository and open it with a code editor of your choice, eg. VSCode

  2. Open the terminal and login to your VTEX account

vtex login {{account}}
  1. Create a new development workspace or use an existing one
vtex use {{workspace}}
  1. Add the account name as the vendor on manifest.json file
{
  "name": "football-app",
  "vendor": "{{account}}",
  "version": "0.0.1",
  "title": "Football App",
  "description": "Example of custom front-end component fetching data from an external source (Sportmonks) manageable via VTEX CMS (Site Editor).",
  "mustUpdateAt": "2018-01-04",
  ...
  ...
}
  1. Link the project
vtex link
  1. After the linking, open the admin panel and show that we extended it with a brand new section
Navigate to:

https://{{workspace}}--{{account}}.myvtex.com/admin/football

Football App

  1. Input a valid "Sportmonks API Token", eg. **************** and save. (You can generate a valid one here)

  2. Download the VTEX Store theme or another store theme of your choice

  3. Add the Football App as peer dependency on the Store theme manifest.json file (line 71)

Football App

  1. Add the Football App front-end component teams-list on the Store theme homepage.jsonc file (line 14)

Football App

  1. Link the Store theme project
vtex link
  1. Navigate to the Storefront and show the new Football component on the homepage

Football App

  1. Open the Site Editor and show that we can edit the configuration of the Football App front-end component

Football App

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published