Get support for soyuka/api-platform-talk-beyond-rest-demo
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.
soyuka/api-platform-talk-beyond-rest-demo
Api Platform - Beyond REST
Slides to come.
- Apéro PHP - Lille 14/03/2019
- Api Platform Meetup - Paris 26/03/2019 ...
Requirements
- docker
- nodejs
- composer
- authbind (use apt-get or brew, it's used so that the user running pm2 can use the
80
port) - pm2 (
npm install pm2 -g
) - PHP >= 7.1.3 with :
- php-sqlite3
- php-zip
- php-curl
- php-amqp
Installation
Go to the front
directory, it's a Next.js project (no reason behind that I just wanted to try their tools).
Just run npm install
in there.
Go to the api
directory and run npm install
and make
.
Launch
/!\ Disclaimer this is NOT a production build it's a "in-development" proof of concept.
Basically:
docker-compose up -d
authbind --deep pm2 start pm2.json
/!\ Some docker services like Elasticsearch may not start properly, if that's the case the services launched by pm2
will fail.
For example, this is needed on my computer if I want Elasticsearch to start:
sudo sysctl -w vm.max_map_count=262144
To be sure just run docker services without daemon:
docker-compose up
and make sure that everything started up.
Then use authbind --deep pm2 start pm2.json && pm2 logs
to log the services.
pm2
is used to start:
- a php server (
bin/console server:run
) on port8080
- the
bin/console messenger:consume-messages
command that handles messages - the
nextjs
server on port3000
- a proxy on port
80
that facilitates the demo access onhttp://localhost
Obviously on a production environment these would just be behind nginx
and php-fpm
would be used as a php server.
Also phppm
could be interesting to run the messenger handlers.
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