https://github.com/creativelive/fiverr-learn
https://github.com/creativelive/fiverr-learn
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/creativelive/fiverr-learn
- Owner: creativelive
- Created: 2024-02-08T20:24:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-24T15:46:01.000Z (about 2 years ago)
- Last Synced: 2025-01-25T14:14:41.147Z (over 1 year ago)
- Language: JavaScript
- Size: 3.01 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Instructions
## Requirements
1. Node.JS must be installed
2. NPM Must be installed
3. For deploy script must have git installed and access to the repo
## Initial setup
1 Run `npm install` command at terminal from this folder
2 Create a file `.env` and put these contents inside
API_KEY=[GET KEY FROM API PAGE]
API_DOMAIN=[GET DOMAIN FROM API PAGE]
DIST=public/
## Updating Reviews JSON
1. Run `./reviews.sh` command at terminal from this folder
This will update all of the JSON files (locally) for reviews
## Creating JSON
1. Run `./generate.sh` command at terminal from this folder
This will update all of the JSON files (locally) for product info
## Deploying
1. Run `./deploy.sh` command at terminal from this folder
This will push all of the local changes
* do reviews
* do generate
* do deploy
* copy product_json to theme settings on fiverr site
** Update Badges JSON for new courses before updating product JSON
## Files
`https://cdn.jsdelivr.net/gh/robgalvinco/json@latest/public/products-json.json` : will be the json that is used for the full product catalog
`https://cdn.jsdelivr.net/gh/robgalvinco/json@latest/public/reviews/[COURSE ID].json`: will contain the reviews for course [COURSE ID] ex: `https://cdn.jsdelivr.net/gh/robgalvinco/json@latest/public/reviews/340905.json`