{"id":24988472,"url":"https://github.com/lit-protocol/lit-apps","last_synced_at":"2025-04-12T00:07:38.493Z","repository":{"id":155330928,"uuid":"595648190","full_name":"LIT-Protocol/lit-apps","owner":"LIT-Protocol","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-30T21:33:02.000Z","size":6226,"stargazers_count":3,"open_issues_count":2,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T00:07:15.646Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://lit-demo-iota.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LIT-Protocol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-31T14:25:33.000Z","updated_at":"2024-07-30T21:33:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"f8789a8e-ac4a-495a-be36-85c32727c8bd","html_url":"https://github.com/LIT-Protocol/lit-apps","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Flit-apps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Flit-apps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Flit-apps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Flit-apps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LIT-Protocol","download_url":"https://codeload.github.com/LIT-Protocol/lit-apps/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248497810,"owners_count":21113984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-04T12:04:25.138Z","updated_at":"2025-04-12T00:07:38.455Z","avatar_url":"https://github.com/LIT-Protocol.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⚠️ Notice: End of Maintenance for This Package\n\nThis package is no longer actively maintained. Moving forward, only critical security patches will be applied. We encourage users to use the [@lit-protocol/contracts](https://www.npmjs.com/package/@lit-protocol/contracts?activeTab=versions) NPM package instead\n\n# Prerequisite\n\n```\nyarn global add turbo\n```\n\n# Quick start\n\n## install\n\n```\nyarn\n```\n\n## Running apps\n\n### Starting general worker (since this is most used atm.)\n\n```\nGITHUB_LIT_ASSETS_REAL_ONLY_API=XXX turbo run dev --filter lit-general-worker -- main.ts\n```\n\nThen, you should be able to see your network contract addresses from these apis:\n\n- http://localhost:3031/manzano-contract-addresses\n- http://localhost:3031/habanero-contract-addresses\n- http://localhost:3031/serrano-contract-addresses\n- http://localhost:3031/contract-addresses \u003c-- cayenne\n\n### Starting a specific app\n\n```\n// turbo dev --filter [\"name\" in package.json]\nturbo dev --filter playground-nextjs\n```\n\n### Starting all apps\n\n```\nyarn dev\n```\n\n### playground-nodejs\n\nspecify file name eg `node-test.mjs`, `main.mjs` in the `src` folder\n\n```\n// passing params using '--'\nturbo dev --filter playground-nodejs -- node-test.mjs\n```\n\n# Setting up test on your monorepo\n\nhttps://jestjs.io/docs/getting-started#using-babel\n\n# Monorepo Workflow TODO\n\n[] Upon building, add root .env to projects that are depended on\n\n# Deploy Notes \u0026 Stack\n\n- The whole repo is deployed to Heroku, but we use Procfile to separate the apps (see https://dev.to/tgmarinhodev/how-to-deploy-a-monorepo-with-turborepo-on-heroku-3ge4)\n\n  - when an app is deployed as a worker (no port exposed), you need to prefix your Procfile with `worker:`, eg:\n\n  ```\n  worker: cd apps/event-listener-be \u0026\u0026 yarn start\n  ```\n\n  Otherwise,\n\n  ```\n  web: cd apps/event-listener-fe \u0026\u0026 yarn start\n  ```\n\n```\nheroku buildpacks:add -a event-listener-fe heroku-community/multi-procfile\nheroku buildpacks:add -a event-listener-fe heroku/nodejs\n\nheroku buildpacks:add -a event-listener-be heroku-community/multi-procfile\nheroku buildpacks:add -a event-listener-be heroku/nodejs\n```\n\n- pm2-runtime is used for worker app, it will be connected to the pm2 dashboard automatically when PM2_PUBLIC_KEY and PM2_SECRET_KEY env keys are provided\n\n- hotjar is installed\n\n# Creating a new app and setup for Heroku\n\n## Quick Start\n\n1. Create a `Procfile` file in your app\n\n\u003e A Procfile is a configuration file used by the Heroku platform to specify the command(s) required to start your application. It defines the process types and entry points for your app, allowing Heroku to understand how to run your application correctly.\n\n```\nweb: cd apps/lit-general-worker \u0026\u0026 yarn start\n```\n\n2. Add buildpacks to your app\n\n\u003e Theses command adds a buildpack to your Heroku application, specifying that you are using the heroku/nodejs and heroku-community/multi-procfile buildpack. `heroku/nodejs` is the official Node.js buildpack provided by Heroku, and `multi-procfile` allows you to use multiple Procfiles in your application, which can be useful if you have multiple processes or applications in your repository that you want to deploy separately.\n\n```\nheroku buildpacks:add -a lit-general-worker heroku-community/multi-procfile\nheroku buildpacks:add -a lit-general-worker heroku/nodejs\n```\n\nNote: if you see `›   Error: Couldn't find that app. ›   Error ID: not_found` that's because you have to create a Heroku app first\n\n3. Set environment variables\n\nYou can either do this in the CLI, or on the Heroku dashboard\n\n```\nheroku config:set APP_ENV=lit-general-worker -a lit-general-worker\nheroku config:set PROCFILE=apps/lit-general-worker/Procfile -a lit-general-worker\n\n\u003c!-- optionals --\u003e\nheroku config:set PINATA_API_KEY=XXXXX -a lit-general-worker\nheroku config:set PINATA_SECRET_KEY=XXXXX -a lit-general-worker\nheroku config:set PM2_PUBLIC_KEY=XXXXX -a lit-general-worker\nheroku config:set PM2_SECRET_KEY=XXXXX -a lit-general-worker\n```\n\n# Vercel setting\n\n![](https://i.ibb.co/Wg1bhmp/Xnapper-2023-09-07-17-18-16.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flit-protocol%2Flit-apps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flit-protocol%2Flit-apps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flit-protocol%2Flit-apps/lists"}