https://github.com/elitecolors/api_cash_symfony
Symfony rest api with docker and jwt access toekn
https://github.com/elitecolors/api_cash_symfony
Last synced: 2 months ago
JSON representation
Symfony rest api with docker and jwt access toekn
- Host: GitHub
- URL: https://github.com/elitecolors/api_cash_symfony
- Owner: elitecolors
- Created: 2022-03-12T10:57:55.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-12T19:09:28.000Z (about 3 years ago)
- Last Synced: 2025-01-14T18:06:07.623Z (4 months ago)
- Language: PHP
- Size: 162 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker && symfony 6 && codeception dev test
**Docker container set-up for Symfony 6.0:**
* nginx
* PHP 8.0
* MariaDB 10.6
* Phpmyadmin 5.1
* codeception### Installation:
1. Bring up the containers: `docker-compose up -d --build`
2. docker-compose exec phpserver bash
3. composer install
4. jwt configuration :
mkdir config/jwt
chmod -R 777 config/jwt
5. create databasebin/console doctrine:schema:update --force
Generate the SSL keys:
php bin/console lexik:jwt:generate-keypair
## check postman json file for api
### Managing your Symfony application:
**Available tools:**
* Composer: `./docker/scripts/composer`
* Symfony Console: `./docker/scripts/console`
* Symfony cli: `./docker/scripts/symfony`
* PHP Code Sniffer: `./docker/scripts/phpcs` vendor/bin/php-cs-fixer fix src
* PhpStan: `./docker/scripts/phpstan`## codeception
to run api test :
* go inside container
docker-compose exec phpserver bash* php vendor/bin/codecept run api -d