Get support for reactive-apps/skeleton
If you're new to LTH, please see our FAQ for more information on what it is we do.
Support Options
Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:
View Open IssuesTake a look to see if anyone else has experienced the same issue as you and if they managed to solve it.
Open an IssueMake sure to read any relevant guidelines for opening issues on this repo before posting a new issue.
Sponsor directlyCheck out the page and see if there are any options to sponsor this project or it's developers directly.
reactive-apps/skeleton
Reactive App Skeleton
Create a new project based on this skeleton
The following command will create a new project based on this skeleton in the your-project-name
directory:
composer create reactive-apps/skeleton your-project-name
Before you get started
Copy the .env.example
to .env
and adjust where needed. Make sure to match the post of REACT_HTTP_SOCKET_ADDRESS
with the post in cigar.json
.
Usage
This skeleton comes with a set of make
commands to ease the QA and development. Running make
will do a full QA run
including linting
, code style checks
, unit tests
, and smoke testing
.
This is a fully command line based tool with it's own HTTP
server build in. Running ./app
will list the available
commands. For example ./app http-server
will start. It is also possible to run multiple commands at once, for example
the following runs the HTTP
server, metrics collection, and internal cron (the latter two aren't included by default):
./app multi metrics cron http-server
.
Docker Compose
Alternatively there is make dev
that will boot up a full dev environment using docker-compose
that includes:
- Running this app with the HTTP server available on
localhost:54321
(host might differ on non-Linux platforms) -
Grafana
onlocalhost:3000
with user/passwordadmin
/admin
for application, system and services metrics -
Graphite
/InfluxDB
for metrics storage and feeding them toGrafana
-
Telegraf
gathering metrics pushing them toGraphite
/InfluxDB
-
RabbitMQ
for message consumer in your app but also used for getting metrics from the app toTelegraf
Logging
The app is by default shipped with Monolog
for logging and STDOUT
logging for
colour logging to the command line. Any additional handlers and processors can be configured in the etc/config/logger.php
configuration file. The http-server.php
next to it also shows off how it can be used together with DI.
HTTP Server
The HTTP
server command looks at composer.json
to find configured controllers and sets those up for when requests
come in. A controller can be both static and instanced. With the latter useful for when you need to do more then the
basics where no injected dependencies are required. The configuration is done through annotations for the allowed
HTTP
method and route. The HTTP server documentation can be found here.
License
The MIT License (MIT)
Copyright (c) 2019 Cees-Jan Kiewiet
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Our Mission
We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.
From the Blog
Interesting Articles
-
Generating income from open source
Jun 23 • 8 min read
-
2023 State of OSS
Apr 23 • 45 min read ★
-
A funding experiment...
Aug 19 • 10 min read
-
But You Said I could
Aug 19 • 2 min read
Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated
p-e622a1a2