GithubHelp home page GithubHelp logo

binoy638 / examples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vercel/examples

0.0 0.0 0.0 27.83 MB

Enjoy our curated collection of examples and solutions. Use these patterns to build your own robust and scalable applications.

Shell 0.33% JavaScript 35.82% TypeScript 59.28% CSS 3.27% HTML 1.31%

examples's Introduction

Vercel Examples

Enjoy our curated collection of examples and solutions. Use these patterns to build your own robust and scalable applications. We're going to be shipping new examples weekly. Stay tuned!

Examples

Adding a new example

To quickly start contributing with a new example, run the following commands:

npm i
npm run new-example

If the script above isn't used, make sure the example complies with the following:

  • It has to be located in either the solutions or edge-functions folder
  • It must have a .gitignore similar to plop-templates/example/.gitignore
  • It must have a package.json similar to plop-templates/example/package.json (usage of Next.js is optional). The license should be MIT
  • It must have a README.md similar to plop-templates/example/README.md. The example has to be able to include a demo URL (the Vercel team will deploy it!) and if it requires environment variables, it must have a .env.example file and instructions on how to set them up. Take bot-protection-datadome as an example.
    • To customize the Vercel Deploy Button take a look at the docs, useful if the deployment has required environment variables.
  • If using Next.js, it must have a .eslintrc.json similar to plop-templates/example/.eslintrc.json
  • All Next.js examples should be using the same styling and layout provided by @vercel/examples-ui, its usage can be seen in the plop template

The pre-commit hook

We use Husky to manage the pre-commit Git hook in this repo. Husky configures hooks automatically during install, so you don't need to do anything special to get them working, but if it fails to install, you can run the following command to install it manually:

npm run prepare

Code changes automatically go through Prettier and Eslint when you make a commit, please do not skip these steps unless they're broken and in that case let us known by creating an issue.

Read the Docs

If you have any questions or suggestions about the docs, feel free to open a discussion, or submit a PR with your suggestions!

Provide Feedback

  • Start a Discussion with a question, piece of feedback, or idea you want to share with the team.
  • Open an Issue if you believe you've encountered a bug that you want to flag for the team.

examples's People

Contributors

lfades avatar goncy avatar steven-tey avatar leerob avatar guibibeau avatar okbel avatar dominiksipowicz avatar simpsoka avatar leggetter avatar tootallnate avatar cramforce avatar endangeredmassa avatar javivelasco avatar dependabot[bot] avatar speediing avatar paulogdm avatar zashraf1985 avatar schniz avatar dbredvick avatar teleaziz avatar lidqqq avatar lcampos avatar aeneasr avatar burak-upstash avatar vinckr avatar trishahanlon avatar bytrangle avatar tknickman avatar sokratisvidros avatar nikola-zdravkovic 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.