Skip to content

Commit

Permalink
Merge branch 'main' of github.com:HE-Arc/PokeTeams
Browse files Browse the repository at this point in the history
  • Loading branch information
noa-devv committed Dec 11, 2024
2 parents 7d9ba50 + 8598234 commit 98cf80e
Show file tree
Hide file tree
Showing 2 changed files with 112 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:fMG1xh/v3Nd25HQYI93ndvKGmPcLXpDLPLzgKmKsDX0=
APP_DEBUG=true
APP_URL=http://localhost

LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=poketeams
DB_USERNAME=root
DB_PASSWORD=

BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DISK=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120

MEMCACHED_HOST=127.0.0.1

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_MAILER=smtp
MAIL_HOST=mailhog
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="[email protected]"
MAIL_FROM_NAME="${APP_NAME}"

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_HOST=
PUSHER_PORT=443
PUSHER_SCHEME=https
PUSHER_APP_CLUSTER=mt1

VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
54 changes: 54 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,55 @@
# PokeTeams

PokeTeams est une application web permettant de créer des équipes Pokémon et de voir les faiblesses globales de celles-ci.

## Dépendenses

- PHP >= 8.2.4
- Composer >= 2.8.2
- Node.js >= 18.20.4
- MariaDB >= 10.5.26

## Lancement en local

1. Clonage du dépot

```bash
git clone https://github.com/HE-Arc/PokeTeams.git
cd PokeTeams
```

2. Installation des dépendenses

```bash
composer install
npm install
```

3. Configuration de l'environement

Chargement de la config de base
```bash
cp .env.example .env
```

Changement des paramètres pour correspondre à l'environnement local
- DB_PASSWORD

4. Génération de la clé d’application

```bash
php artisan key:generate
```

5. Migration et seeding de la base de données

```bash
php artisan migrate:fresh --seed
```

6. Démarrage du serveur

```bash
npm run dev
php artisan serve
```

0 comments on commit 98cf80e

Please sign in to comment.