This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server/wsServer.ts -> server side integration (npm i ws) | |
client/wsClient.ts -> client side integration (built in WebSockets) | |
WebSocket is bidirectional protocol that is used in the same scenario of client-server communication, | |
unlike HTTP which starts from ws:// or wss://. It is a *stateful* protocol, which means the connection | |
between client and server will stay alive until it gets terminated by either party (client or server). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// STEPS data | |
export const STEPS = [ | |
{ | |
number: "1", | |
title: "Connect", | |
description: | |
"Build bridges and discover\n opportunities to unite for a cause.", | |
align: "right", | |
}, | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import os | |
from pathlib import Path | |
from typing import List, Dict, Optional | |
import uuid | |
DB_PATH = Path("users.json") | |
class JSONDatabase: | |
def __init__(self): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use client" | |
import { useRef } from "react" | |
import { motion, useScroll, useTransform } from "framer-motion" | |
import Image from "next/image" | |
const features = [ | |
{ | |
title: "Menu management", | |
description: | |
"Easily create, update, and manage your restaurant or branch menus with full control over your menu. Keep your offerings up-to-date with zero hassle.", |