Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eldar34/fin_product
https://github.com/eldar34/fin_product
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/eldar34/fin_product
- Owner: eldar34
- License: bsd-3-clause
- Created: 2021-07-09T12:32:48.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-12T11:21:16.000Z (over 3 years ago)
- Last Synced: 2024-11-05T15:35:04.282Z (2 months ago)
- Language: PHP
- Homepage: http://finbank.test2task.ru/
- Size: 3.14 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
INSTALLATION WITH DOCKER
------------### Prepare settings for DB connection
Create file .env in project base directory. Copy the .env.example file to a local .env
Add your application configuration to a .env or use default congiguration for docker-containers.
### Build application with docker-compose
Run docker-compose command:
~~~
docker-compose up --build
~~~Connect to the docker-service (php) and run command to intall composer:
~~~
docker-compose exec php composer install
~~~Connect to the docker-service (php) and run command to create DB tables:
~~~
docker-compose exec php php yii migrate --interactive=0
~~~Now you should be able to access the application through the following URL:
~~~
http://localhost:8000/
~~~Swagger for testing api endpoints through the following URL:
~~~
http://localhost:8000/documentation/
~~~Adminer for management database through the following URL:
~~~
http://localhost:5080/
~~~INSTALLATION
------------### Install via Composer
If you do not have [Composer](http://getcomposer.org/), you may install it by following the instructions
at [getcomposer.org](http://getcomposer.org/doc/00-intro.md#installation-nix).You can then install this project template using the following command:
~~~
composer install
~~~### File permissions
If composer don't run script postCreateProject:
~~~
chmod 0777 runtime
chmod 0777 web/assets
chmod 0755 yii
~~~### Prepare settings for DB connection
Create file .env in project base directory. Copy the .env.example file to a local .env
Add your application configuration(recommended) to a .env or use default congiguration for docker-containers.
### Swagger
If you want to update swagger documentation run command:
~~~
./vendor/bin/openapi controllers -o web/documentation/swagger.json
~~~