Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
davisenra committed Mar 24, 2024
1 parent afb31bc commit 31f732b
Show file tree
Hide file tree
Showing 8 changed files with 387 additions and 7 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Slim

## Documentation

**Instructions:**

1. Create a .env file: ```cp .env.example .env```
2. Run the containers: ```docker compose up -d```
3. Install dependencies: ```docker exec php composer install```
4. Run tests ```docker exec php vendor/bin/phpunit```
5. Visit https://localhost and accept the self-signed certificate

**Environment variables:**

- APP_ENV: the app environment (e.g "development", "production")
- DOMAIN: the domain on which the app is being served (e.g "https://localhost")
- DB_DRIVER: PDO driver to be used by Doctrine (e.g "pdo_sqlite")
- DB_NAME: database name (filename in case of Sqlite)
- DB_USER: database user (should be blank if using Sqlite)
- DB_PASSWORD: database password (should be blank if using Sqlite)
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"symfony/var-dumper": "^7.0",
"phpunit/phpunit": "^11.0",
"phpstan/phpstan": "^1.10",
"friendsofphp/php-cs-fixer": "^3.52"
"friendsofphp/php-cs-fixer": "^3.52",
"robiningelbrecht/phpunit-pretty-print": "^1.3"
}
}
320 changes: 319 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 31f732b

Please sign in to comment.