{"id":19396051,"url":"https://github.com/zxbodya/reactive-widgets","last_synced_at":"2025-07-05T02:34:18.449Z","repository":{"id":31617386,"uuid":"35182429","full_name":"zxbodya/reactive-widgets","owner":"zxbodya","description":"Application starter template, for implementing isomorphic widgets, using RxJS and React","archived":false,"fork":false,"pushed_at":"2017-09-16T21:08:26.000Z","size":158,"stargazers_count":52,"open_issues_count":0,"forks_count":4,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-24T05:33:50.210Z","etag":null,"topics":["javascript","react","rxjs","universal-app","widgets"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zxbodya.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-06T20:54:45.000Z","updated_at":"2022-02-09T08:33:13.000Z","dependencies_parsed_at":"2022-09-10T02:24:09.396Z","dependency_job_id":null,"html_url":"https://github.com/zxbodya/reactive-widgets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zxbodya/reactive-widgets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxbodya%2Freactive-widgets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxbodya%2Freactive-widgets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxbodya%2Freactive-widgets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxbodya%2Freactive-widgets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zxbodya","download_url":"https://codeload.github.com/zxbodya/reactive-widgets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxbodya%2Freactive-widgets/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263671783,"owners_count":23494040,"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":["javascript","react","rxjs","universal-app","widgets"],"created_at":"2024-11-10T10:33:22.654Z","updated_at":"2025-07-05T02:34:18.423Z","avatar_url":"https://github.com/zxbodya.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Reactive widgets [![Build Status](https://travis-ci.org/zxbodya/reactive-widgets.svg?branch=master)](https://travis-ci.org/zxbodya/reactive-widgets)\n\nApplication starter template, for implementing isomorphic widgets(same code for both server and client side), using RxJS and React\n\nIt is build on top of following great projects:\n \n * [React](http://facebook.github.io/react/) for a view layer \n * [RxJS](https://github.com/ReactiveX/RxJS) for data layer, and composing asynchronous components\n * [Webpack](http://webpack.js.org/) to bundle client and server side scripts\n * [Babel](babeljs.io) to use next generation JavaScript, today.\n * [Express.JS](http://expressjs.com) for serving prerender application\n * [Axios](https://github.com/mzabriskie/axios) for AJAX requests to API \n * [Jest](http://facebook.github.io/jest/) for tests\n * [ESLint](http://eslint.org/) to watch for coding style issues\n * [Nodemon](http://nodemon.io/) to reload rendering server in dev mode\n  \nFor now, application includes following:\n \n * [rx-react-container](https://github.com/zxbodya/rx-react-container) - Allows to use React as a view layer for RxJS application, and to wait for required data before first rendering.\n * [di1](https://github.com/zxbodya/di1) DI Container, inspired by https://github.com/angular/di.js but a lot simplified\n * Application for server side components rendering\n * Example of PHP application that uses components\n * Simple widget example\n\n### Requirements\n\n* [nodejs](http://nodejs.org) You will need version 6 or above\n* PHP above v5.4 for server side example and [composer](https://getcomposer.org/) to install dependencies \n\n\n### Development environment setup\n\n0. Check your Node.js version - it should be version 6 or later\n1. Install dependencies using npm (or yarn)\n2. start server app, with automatic recompile and reload when something changes\n    - `npm run dev`\n3. open this url in your browser: `http://localhost:4000/` (php server should be started at port 4000 to make this working, see instructions below) \n\nTo customize host and ports used by application - use environment variables:\n\n- `DEV_SERVER_PORT` - port used by dev server, `2992` by default\n- `DEV_SERVER_HOST` - host where dev server is running, `localhost` by default\n\nSame thing about app itself:\n\n- `APP_SERVER_HOST` - host where application is running, `localhost` by default (address where app is accessible) \n- `APP_SERVER_PORT` - port user by application, `8080` by default\n\n**if you have different application host and port different than above - be sure to specify them in environment**\n\nAlso you can enable some other things for dev-server by environment variables\n \n- `HOT=1` to enable hot reload for client side  \n\nFor setting those variables - you can create `.env` file at project root.\n\n\n1. To run unit tests: `npm run test`\n2. To check code style  `npm run lint`\n\n### Production setup\n\n1. Install dependencies: `npm i`\n2. Build project `npm run build`\n3. Start rendering server: `node ./build/server/server.js`\n\n### PHP server demo that will use implemented widgets\n\nexample is in public folder, to try it:\n\n1. `composer install` install dependencies, using composer\n2. start php built in server `php -S 127.0.0.1:4000`\n3. navigate to http://127.0.0.1:4000/ to see results\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzxbodya%2Freactive-widgets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzxbodya%2Freactive-widgets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzxbodya%2Freactive-widgets/lists"}