Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tlecomte13/bailfacile
https://github.com/tlecomte13/bailfacile
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tlecomte13/bailfacile
- Owner: Tlecomte13
- Created: 2022-04-27T13:24:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-04-28T13:24:50.000Z (over 2 years ago)
- Last Synced: 2024-09-06T18:19:23.091Z (4 months ago)
- Language: PHP
- Size: 114 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BailFacile
Here is my participation to the technical test## Getting Started
### Installation local
1. Clone the repository
```sh
git clone [email protected]:Tlecomte13/bailfacile.git
```
2. Go to project bailfacile
```sh
cd bailfacile
```
3. Installation with docker-compose
```sh
docker-compose up -d
```
4. Create file .env.local in folder app
```sh
cd app
touch .env.local
```
5. copy this line
```mysql
DATABASE_URL="mysql://root:root@mysql:3306/bailfacile?serverVersion=8&charset=utf8mb4"
```6. go in container php
```sh
docker-compose exec php /bin/bash
```7. install dependencies
```sh
composer i
```8. install migration
```sh
php bin/console doctrine:migration:migrate
```9. install fixtures
```sh
php bin/console doctrine:fixtures:load
```## URL
1. Swagger
```sh
http://localhost:8080/api
```
## TEST1. setup
```sh
php bin/console doctrine:database:create --env=test
php bin/console doctrine:migration:migrate --env=test
php bin/console doctrine:fixtures:load --env=test
```2. launch
```sh
php bin/phpunit
```## PACKAGE
```sh
Api platform
php unit
```