Git Product home page Git Product logo

multiplatform-project's Introduction

Мультиплатформенное приложение

Демо-приложение для встраивания во ВКонтакте, Одноклассники и Telegram.

Приложения с примерами

Технологии

  • React
  • React Router v6
  • CSS Modules
  • Typescript
  • Vite
  • Prettier

Структура проекта

|multiplatform-project
|--/entries <- ресурсы для входных точек разных платформ
   |--/ok
      |--index.html <- html с подключенным скриптом FAPI
      |--main.tsx <- входная точка для ОК с вызовом метода инициализации из FAPI
      |--types.ts <- типы для FAPI
   |--/tg
      |--index.html <- html с подключенным скриптом Telegram Web App
      |--main.tsx <- входная точка для TG с вызовом метода инициализации из Telegram SDK
      |--types.ts <- типы для Telegram 
   |--/vk
      |--index.html <- html с подключенным скриптом VK Bridge
      |--main.tsx <- входная точка для VK с вызовом метода инициализации из VK Bridge
      |--types.ts <- типы для VK Bridge
      |--utils.ts <- утилиты для инициализации VK Bridge
   |--/web
      |--index.html <- html без дополнительных скриптов
      |--main.tsx <- входная точка для web
|--/partials <- отдельные куски html, подставляемые через handlebars в html-файлы платформ
|--/src
   |--/components <- общие компоненты
   |--/config <- общие конфиги
   |--/pages <- компоненты-страниц приложения
   |--/stores <- сторы
   |--/styles <- глобальные стили, общие миксины и переменные
   |--/types <- глобальные типы
   |--App.tsx <- главный компонент приложения
   |- main.tsx <- общая точка входа в приложение
|--/static <- папка со статикой, которая копируется при сборке

Основные скрипты

  • Запуск dev-сервера:
yarn dev
  • Сборка:
yarn build

multiplatform-project's People

Contributors

n-merkulova avatar

Stargazers

Danil Antoshkin avatar Maxim Kuznetsov avatar  avatar Dmitry Khotko avatar Arthur Naumov avatar

Watchers

 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.