The project behind my talk about "Api Platform beyond REST"
Slides to come.
80
port)npm install pm2 -g
)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
.
/!\ 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:
bin/console server:run
) on port 8080
bin/console messenger:consume-messages
command that handles messagesnextjs
server on port 3000
80
that facilitates the demo access on http://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.