{"id":22120303,"url":"https://github.com/joshbrew/esbuild_base_reactts","last_synced_at":"2025-03-24T06:27:30.264Z","repository":{"id":133634604,"uuid":"463749155","full_name":"joshbrew/esbuild_base_reactts","owner":"joshbrew","description":"React and Typescript app base with esbuild. Includes a hot reloading node dev server and a concurrent python (quart) server you can connect to.","archived":false,"fork":false,"pushed_at":"2022-02-27T23:03:24.000Z","size":318,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T12:15:16.663Z","etag":null,"topics":[],"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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-26T04:07:30.000Z","updated_at":"2022-02-27T23:16:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"4c8b69ec-8ef9-44bb-a2b9-4bdf993c643d","html_url":"https://github.com/joshbrew/esbuild_base_reactts","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/joshbrew%2Fesbuild_base_reactts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbrew%2Fesbuild_base_reactts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbrew%2Fesbuild_base_reactts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbrew%2Fesbuild_base_reactts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joshbrew","download_url":"https://codeload.github.com/joshbrew/esbuild_base_reactts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245220330,"owners_count":20579751,"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":"2024-12-01T14:22:13.813Z","updated_at":"2025-03-24T06:27:30.216Z","avatar_url":"https://github.com/joshbrew.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [React](https://reactjs.org/) + [TypeScript](https://www.typescriptlang.org/) 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\n## Build \u0026 Run Development Server without Python Server\n\n`npm i` then `npm run startdev`\n\nFind node_server/server_settings.js for easy config for http/https (set socket protocol 'ws' to 'wss' for hosted https). https requires ssl (instructions included in node_server/ssl)\n\n## With Python Server\n\nRequires: Python 3.7 or later and NodeJS LTS or later\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:8080` or the quart server test page at `http://localhost:7000` to experiment (add `/build` at port 7000 to access the node build through python (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 concurrent` 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\nComment out any py_wss or py_client references in node_server/server.js if you want to exclude it altogether else the node server tries to connect to the python port 7000 (only works on https).\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 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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshbrew%2Fesbuild_base_reactts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoshbrew%2Fesbuild_base_reactts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshbrew%2Fesbuild_base_reactts/lists"}