Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dylanqin4/authenticator-api
https://github.com/dylanqin4/authenticator-api
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dylanqin4/authenticator-api
- Owner: DylanQin4
- Created: 2024-12-17T08:05:41.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2025-01-26T15:04:06.000Z (13 days ago)
- Last Synced: 2025-01-26T15:28:56.909Z (13 days ago)
- Language: PHP
- Size: 206 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fournisseur d'authentification API Symfony
Ce projet est une application de fournisseur d'authentification avec Symfony. Il utilise Docker pour l'environnement de développement et PostgreSQL pour la base de données.
## Prérequis
- **Docker** : Assurez-vous que Docker et Docker Compose sont correctement installés sur votre machine. Vous pouvez vérifier cela en exécutant :
```bash
docker --version
docker-compose --version## Installation
1. Clonez le dépôt :
```bash
git clone https://github.com/DylanQin4/Library-api.git
cd Library-api
```
2. Créez un fichier `.env` à partir du fichier `.env.example` :```bash
cp .env.example .env
```
3. Construisez les conteneurs Docker :```bash
docker-compose up -d
```
4. Installez les dépendances PHP :```bash
docker exec -it library_api_symfony bash -c "composer install"
```
5. Créez la base de données :```bash
docker exec -it library_api_symfony bash -c "php bin/console doctrine:database:create"
```
6. Generer le ficher de migration :```bash
docker exec -it library_api_symfony bash -c "php bin/console make:migration"
```
7. Exécutez les migrations :```bash
docker exec -it library_api_symfony bash -c "php bin/console doctrine:migrations:migrate"
```
8. Chargez les fixtures :```bash
docker exec -it library_api_symfony bash -c "php bin/console doctrine:fixtures:load"
```
repondez `yes` pour confirmer le chargement des fixtures.9. L'API est maintenant accessible à l'adresse `http://localhost:8080`.