https://github.com/zeppaman/api-farm-skeleton
https://github.com/zeppaman/api-farm-skeleton
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zeppaman/api-farm-skeleton
- Owner: zeppaman
- Created: 2021-03-12T13:32:57.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-18T17:50:03.000Z (over 4 years ago)
- Last Synced: 2025-01-23T13:13:48.352Z (9 months ago)
- Language: PHP
- Size: 137 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Api Farm Skeleton
This is the skeleton project for api farm. [Go to the main project page for more info](https://github.com/zeppaman/api-farm)
# Setup
```
# create a project
COMPOSER_MEMORY_LIMIT=-1 composer create-project zeppaman/api-farm-skeleton my-project --stability=devcd my-project
docker-compose up
# configure the application
docker-compose exec app ./vendor/bin/apifarm-install apifarm:config [--db-host DB-HOST] [--db-port DB-PORT] [--db-password DB-PASSWORD] [--db-user DB-USER]# install the database
docker-compose exec app bin/console apifarm:install [--adminuser ADMINUSER] [--adminpassword ADMINPASSWORD] [--db-host DB-HOST] [--db-port DB-PORT] [--db-password DB-PASSWORD] [--db-user DB-USER]```
# Command setup
```
# bin/console apifarm:install --help
Usage:
apifarm:install [options]Options:
--adminuser=ADMINUSER username for initial administator [default: "admin"]
--adminpassword=ADMINPASSWORD password for initial administator [default: "admin"]
-h, --help Display help for the given command. When no command is given display help for the list command
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-e, --env=ENV The Environment name. [default: "dev"]
--no-debug Switch off debug mode.
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
```