Git Product home page Git Product logo

sfc-gh-cbaechtold / sfquickstarts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from snowflake-labs/sfquickstarts

0.0 0.0 0.0 2.18 GB

Follow along with our tutorials to get you up and running with the Snowflake Data Cloud.

License: Apache License 2.0

Shell 0.37% JavaScript 17.97% Python 3.67% Java 1.99% Go 22.00% Makefile 0.17% HTML 35.03% PLpgSQL 2.73% Batchfile 0.04% Jupyter Notebook 4.73% SCSS 8.18% Closure Templates 0.92% Starlark 2.19%

sfquickstarts's Introduction

Snowflake QuickStart Guides

quickstarts.snowflake.com.2.mp4

What are Snowflake Quickstarts?

Snowflake Quickstarts are interactive tutorials and self-serve demos written in markdown syntax. Quickstarts provide a unique step-by-step reading experience and automatically saves tutorial progress for readers. These tutorials are published at quickstarts.snowflake.com

You can submit your own Quickstarts to be published on Snowflake's website by submitting a pull request to this repo. This repository contains all the tools and documentation you’ll need for building, writing, and submitting your own Quickstart!

What's special about the Quickstart format?

  • Powerful and flexible authoring flow in Markdown text
  • Ability to produce interactive web or markdown tutorials without writing any code
  • Easy interactive previewing
  • Usage monitoring via Google Analytics
  • Support for multiple target environments or events (conferences, kiosk, web, offline, etc.)
  • Support for anonymous use - ideal for public computers at developer events
  • Looks great, with a responsive web implementation
  • Remembers where the student left off when returning to a quickstarts
  • Mobile friendly user experience

Getting Started

Prerequisites

  1. Install Node Version Manager (nvm)
    • Not sure if you have it installed? Run nvm or nvm -v at the command line and hit enter. If you encounter a "command not found" error, you likely do not have it installed.
  2. Install Node (required to run the site locally) using nvm: nvm install latest
    • If you have Homebrew installed and don't want to use nvm, run: brew install node
  3. Install gulp-cli npm i -g gulp-cli
  4. Install Go
    • If you have Homebrew installed, run: brew install golang
    • Install claat go install github.com/googlecodelabs/tools/claat@latest
    • Ensure go and claat is in your PATH claat path setup
  5. Optional: install the live-reload plugin for Chrome: LiveReload

Run locally

  1. Fork this repository to your personal GitHub account (top right of webpage, fork button)
  2. Clone your new fork git clone [email protected]:<YOUR-USERNAME>/sfquickstarts.git sfquickstarts
  3. Navigate to the site directory cd sfquickstarts/site
  4. Install node dependencies npm install
  5. Run the site npm run serve
  6. Open a browser to http://localhost:8000/

Congratulations! You now have the Snowflake Quickstarts landing page running.

Common Errors

1. Claat related errors

  • Make sure Go is properly in your PATH. Add the following lines to your profile (~/.profile, or ~/.zshrc):
#adding Golang to path
export PATH=$PATH:/usr/local/go/bin
export PATH=$PATH:$HOME/go/bin

Note: After adding Go to your PATH, be sure to apply your new profile: source ~/.profile or source ~/.zshrc

2. You get a EACCES error when installing gulp-cli

3. You get Error: Cannot find module 'postcss' when running npm run serve

  • The module may not have been installed for some reason so run npm install --save-dev postcss gulp-postcss and then rerun npm run serve

Write Your First Quickstart

  1. Terminate the running server with ctrl C and navigate to the sfguides source directory cd sfguides/src
    • In this directory, you will see all existing guides and their markdown files.
  2. Generate a new guide from the guide template npm run template <GUIDE-NAME>
    • Don't use spaces in the name of your guide, instead use hyphens, they are better for SEO.
  3. Navigate to the newly generated guide (cd sfguides/src/<GUIDE-NAME>) and edit your guide in a tool like VS Code.
  4. Run the website again npm run serve
  5. As you edit and save changes, your changes will automatically load in the browser.

Template To Follow

Other Tips

How do I get my Snowflake Quickstart on quickstarts.snowflake.com?

  1. You will need to sign Snowflake's CLA. The action required on your part is to specify in your (first) pull request comment that you accept it.
  2. Fork this repository
  3. Clone it to your local machine
  4. Make your changes/edits/updates on your locally cloned repo
  5. Run the site locally again via npm run serve and make sure your QuickStart guide shows up as you expect it. Pay close attention to the layout and format. If you are unsure, use this QuickStart as a template to follow.
  6. Push the changes/edits/updates back to your repo
  7. Open this repository on GitHub.com
  8. Click the Pull Request button to open a new pull request
  9. Snowflake will review and approve the submission

To learn more about how to submit a pull request on GitHub in general, check out GitHub's official documentation.

Reporting issues or errata in Quickstarts

Quickstarts are not in the scope of Snowflake Global Support. Please do not file support cases for issues or errata in a Quickstart. If you encounter an issue in a Quickstart (outdated copy or data, typos, broken links, etc.), please file an issue in this repository. Be sure to include the following information:

  1. The title of the Quickstart
  2. A link to the Quickstart
  3. A description of the problem
  4. A proposed solution, if applicable (optional)

sfquickstarts's People

Contributors

jdanielmyers avatar cassierecher avatar nicolasgarnier avatar marzillo-snow avatar sfc-gh-ghernandez avatar iamontheinet avatar sfc-gh-jwest avatar shawnbuso avatar x1ddos avatar mco-gh avatar dragonrider0o0 avatar sfc-gh-bculberson avatar yarodmi avatar sfc-gh-jsun avatar sfc-gh-jhansen avatar astronautyates avatar sfc-gh-adlee avatar scottteal avatar sfc-gh-fpacione avatar sfc-gh-dturnbull avatar sfc-gh-aengelbrecht avatar sfc-gh-smaser avatar sf-gh-sjasti avatar sfc-gh-jwarner avatar ykdojo avatar local-machine avatar sfc-gh-obielov avatar zshainsky avatar sfc-gh-rzukowski avatar sfc-gh-sdas-1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.