{"id":22120336,"url":"https://github.com/joshbrew/esbuild_base_python","last_synced_at":"2025-09-22T08:44:28.707Z","repository":{"id":44005251,"uuid":"458663377","full_name":"joshbrew/esbuild_base_python","owner":"joshbrew","description":"Python quart server + esbuild application base, with websockets/sse streaming from quart (with bonus multithreading example in quart)","archived":false,"fork":false,"pushed_at":"2022-04-30T08:01:25.000Z","size":190,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T12:15:21.890Z","etag":null,"topics":["bilingual","esbuild","javascript","pwa","python","quart","webapp"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joshbrew.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}},"created_at":"2022-02-12T23:25:58.000Z","updated_at":"2024-08-12T14:50:03.000Z","dependencies_parsed_at":"2022-09-07T17:36:20.643Z","dependency_job_id":null,"html_url":"https://github.com/joshbrew/esbuild_base_python","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbrew%2Fesbuild_base_python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbrew%2Fesbuild_base_python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbrew%2Fesbuild_base_python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbrew%2Fesbuild_base_python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joshbrew","download_url":"https://codeload.github.com/joshbrew/esbuild_base_python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245220431,"owners_count":20579779,"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":["bilingual","esbuild","javascript","pwa","python","quart","webapp"],"created_at":"2024-12-01T14:22:50.225Z","updated_at":"2025-09-22T08:44:23.653Z","avatar_url":"https://github.com/joshbrew.png","language":"JavaScript","readme":"# Minimal [esbuild](https://esbuild.github.io/getting-started/#your-first-bundle), [Nodejs](https://developer.mozilla.org/en-US/docs/Learn/Server-side/Node_server_without_framework), and [Python Quart](https://pgjones.gitlab.io/quart/) concurrent test env.  \n\nRequires: Python 3.7 or later and NodeJS LTS or later\n\n![image](Capture.PNG)\n\nThis test runs a websocket and a thread on the [python](https://www.python.org/downloads/) quart server. You can access the Node-served test page at `http://localhost:8000` or the quart server test page at `http://localhost:7000` to experiment (add `/build` at port 7000 to access the node build (minus hot reload)). \n\nQuart enables fast asyncio server streams from python. Bonus thread-generated data in python streaming through websockets to show off the potential.\n\n`npm run pip` should install any missing python packages. See [README](https://github.com/moothyknight/esbuild_base_python/blob/master/python/README.md))\n\n`npm run dev` installs nodejs packages and runs both python and node servers concurrently (with hot reloading for FE with a persistent python streaming server backend).\n\nAfter installing dependencies, \n\n## Run Python and Node together: \n\n`npm run concurrent`\n\n## Otherwise\n\nTo run: `npm run build` to bundle, then `npm start` to run the node server.\n\n* OR `npm test` to run both commands in sequence\n\nYou can specify https and add an ssl certificate if you follow the instructions.\n\n\u003e2 dependencies: `esbuild` and [`fragelement`](https://github.com/brainsatplay/domelement)\n\n## Hot reloading (for dev)\n\n`npm run dev`\n\nthen `npm run startdev` \n\nnodemon restarts the node server automatically when changes to included source files are detected.\n\nThe nodemon dev server adds basic frontend hot reloading via websocket and clientside code injection (see [nodeserver/server.js](https://github.com/moothyknight/esbuild_base/blob/master/node_server/server.js) for method).\n\n\u003e 2 dev dependencies: `nodemon` and `ws`\n\n## PWA build:\n\nTo test:\n\n`npm run pwa` \n\nThis installs workbox-cli, generates the service worker, bundles and then starts the application. Run once if you don't need to modify the service-worker further.\n\n\u003e 1 additional dependency: `workbox-cli`\n\n### Other notes:\n\nSee README.md files in each folder for more explanation on how to work with these types of applications.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshbrew%2Fesbuild_base_python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoshbrew%2Fesbuild_base_python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshbrew%2Fesbuild_base_python/lists"}