rtio / kdti-server

MIT License
21 stars 6 forks source link

Set up local dev environment #59

Open joao-marcos opened 4 years ago

joao-marcos commented 4 years ago

I don't think it should be a requirement to have PHP installed in my local machine in order to run the project. Maybe we should create a Dockerfile to install all the the requirements in the container.

Luitame commented 4 years ago

We're using Bref and according to their documentation in order to keep things simple, we must keep using our regular local environment to work with the project. Things like composer install and all these kind of setups must keep using your local PHP settings. Yes, Bref provides some layers to simulate an environment close to AWS Lambda but it doesn't have things such as Composer and etc.

Assuming that we're using Docker already I took the opportunity to build an image based on the PHP 7.3 official image to create this dev local environment. I know it's not a big ideal we have two different images for the same project. But, I think we could go using this approach and over time try to think in another best solution.