Skip to content

Commit

Permalink
Provide Database setup / migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
neilmillard committed Mar 30, 2024
1 parent e54441d commit f62c742
Show file tree
Hide file tree
Showing 6 changed files with 1,240 additions and 21 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
# What Running Where

[![Coverage Status](https://coveralls.io/repos/github/slimphp/Slim-Skeleton/badge.svg?branch=master)](https://coveralls.io/github/slimphp/Slim-Skeleton?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/neilmillard/whatrunningwhere/badge.svg?branch=main)](https://coveralls.io/github/neilmillard/whatrunningwhere?branch=main)

## Install the Application

* Point your virtual host document root to your new application's `public/` directory.
* Ensure `logs/` is web writable.

Further setup steps for database
```bash
cd whatrunningwhere
composer install
touch db.sqlite
vendor/bin/phinx migrate -e development
```
To run the application in development, you can run these commands

```bash
cd whatrunningwhere
touch db.sqlite
composer start
```

Expand Down
1 change: 0 additions & 1 deletion app/dependencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
$connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$connection->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);
endswitch;
// $connection->exec('CREATE TABLE IF NOT EXISTS deployments (id int, application text, version text, who text, time int, environment text)');
return $connection;
},
]);
Expand Down
22 changes: 9 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,31 @@
{
"name": "slim/slim-skeleton",
"description": "A Slim Framework skeleton application for rapid development",
"name": "neilmillard/whatrunningwhere",
"description": "A Slim Framework application to track deployments",
"keywords": [
"microframework",
"rest",
"router",
"psr7"
],
"homepage": "http://github.com/slimphp/Slim-Skeleton",
"homepage": "http://github.com/neilmillard/whatrunningwhere",
"license": "MIT",
"authors": [
{
"name": "Josh Lockhart",
"email": "[email protected]",
"homepage": "http://www.joshlockhart.com/"
},
{
"name": "Pierre Berube",
"email": "[email protected]",
"homepage": "http://www.lgse.com/"
"name": "Neil Millard",
"email": "[email protected]",
"homepage": "https://www.neilmillard.com/"
}
],
"require": {
"php": "^8.1",
"ext-json": "*",
"ext-pdo": "*",
"monolog/monolog": "^2.8",
"php-di/php-di": "^6.4",
"robmorgan/phinx": "^0.16.0",
"slim/psr7": "^1.5",
"slim/slim": "^4.10",
"slim/twig-view": "*",
"ext-pdo": "*"
"slim/twig-view": "*"
},
"require-dev": {
"jangregor/phpstan-prophecy": "^1.0.0",
Expand Down
Loading

0 comments on commit f62c742

Please sign in to comment.