Giter Club home page Giter Club logo

slivki's Introduction

Slivki QR code menu

And food delivery!

Tehnologies used

  • Next.js - React framework
  • Typescript - Types
  • MongoDB - Database
  • NextAuth - Authentication
  • Telegram API - Bot for receiving orders
  • Google Cloud Storage - For storing images
  • TailwindCSS - CSS framework
  • DaisyUI - TailwindCSS components
  • Vercel - Hosting

Project structure

├───.husky - used for pre-commit prettier formatting
├───.vscode - VSCode settings
├───public - static files
└───src
    ├───app
    │   ├───[lang] - what normal visitors will see
    │   │   └───checkout - checkout page
    │   │       └───success - successful order page
    │   ├───admin - admin panel
    │   ├───api - API endpoints
    │   │   └───auth - NextAuth endpoints
    │   ├───order - order api
    │   └───telegram - Telegram bot
    │       ├───setup - sets up webhook
    │       └───webhook - receives updates from Telegram
    ├───components - React components
    │   ├───*name*.tsx - Basic layouts for components
    │   ├───*name*Viewer.tsx - Viewer components
    │   └───*name*Editor.tsx - Admin components
    ├───hooks - React hooks
    ├───lib - Things for interacting with external APIs
    ├───dictionaries - Dictionaries for translations
    ├───models - Mongoose models
    └───utils - Utility functions
        ├───client - Client-side only
        └───server - Server-side only

Required environment variables

MongoDB

  • MONGODB_URI - MongoDB connection string
  • MONGODB_DBNAME - MongoDB database name

NextAuth

Google Cloud

  • PROJECT_ID - Google Cloud project ID
  • CLIENT_EMAIL - Google Cloud client email
  • PRIVATE_KEY - Google Cloud private key
  • BUCKET_NAME - Google Cloud bucket name

Telegram

  • TELEGRAM_TOKEN - Telegram bot token
  • TELEGRAM_SECRET - Secret code that telegram will send with its webhook requests
  • TELEGRAM_PASSWORD - Code that user needs to send to be registered as listener for updates

ReCAPTCHA

  • NEXT_PUBLIC_RECAPTCHA_SITE_KEY - Recaptcha site key
  • RECAPTCHA_SECRET - Recaptcha secret

slivki's People

Contributors

suhankins avatar

Watchers

 avatar

slivki's Issues

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.