dev-master
9999999-dev12 factor service skeleton
MIT
The Requires
- php >=7.1
- vlucas/phpdotenv ^2.4
- monolog/monolog ^1.23
- slim/slim ^3.0
- illuminate/support ^5.4
- slim/php-view ^2.2
The Development Requires
by neronmoon
12 factor service skeleton
macOs: brew install docker
, (*1)
Linux/Unix:, (*2)
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main' apt-get update apt-get install docker-engine
make
to build, (*3)
make dev
to build and run local version, (*4)
Dev version will appear here: http://localhost:8081, (*5)
Create project, (*6)
composer create-project fridaylabs/service -s dev --no-install --ignore-platform-reqs <SERVICE_NAME>
and push it to your repo, (*7)
Solved by composer, (*8)
.env
file for local setup Use config for connecting with DB, Queue or other services, (*9)
make
to buildmake dev
to build and run local versionSolved by php-fpm, (*10)
Solved by supervisord, (*11)
Solved by docker and composer, (*12)
TODO, (*13)
12 factor service skeleton
MIT