Code Monkey home page Code Monkey logo

jamstack-tutorial's Introduction

JAMStack Tutorial

Stack = React + GraphQl + FaunaDB

URL: ๐Ÿ”— https://save-links.netlify.app/

Steps

  • Signup on Netlify
  • run command npm i -g yarn
  • run command npm i netlify-cli -g
  • run command npx create-react-app jamstack-tutorial
  • run commannd cd jamstack-tutorial
  • create directory on root functions/helloWorld.js
  • create file (netlify.toml) on root
  • add commands inside (as written in netlify.toml in my repo)
  • run command netlify dev (functions and frontend started)
  • Faunadb Setup
    • create database (click create database)
    • GraphQl > import Schema (choose file functions/utils/links.gql)
    • Click Security > add key > select server > add name > save and copy
    • Create .env file at root > store the key in FAUNA_SECRET_KEY variable
  • create functions
    • Create, Read, Update, Delete
  • Create Frontend
    • Integrate Serverless functions with Frontend by making api calls

Packages Installation

  npm i axios dotenv bootstrap

jamstack-tutorial's People

Contributors

developer-junaid 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.