Minimal Nette app for collecting job offers.
Quick start (SQLite, local):
cp .env.example .env # optional
php -r "require 'vendor/autoload.php'; (new Dotenv\Dotenv(__DIR__))->load();" || true
php scripts/init_db.php
php -S 127.0.0.1:8000 -t public
# open http://127.0.0.1:8000/offersTo use MySQL, set environment variables before running scripts/init_db.php:
export DB_DRIVER=mysql
export DB_HOST=127.0.0.1
export DB_PORT=3306
export DB_NAME=prace_app
export DB_USER=root
export DB_PASS=secret
php scripts/init_db.phpNotes:
- DI:
PDOservice is provided byApp\\Model\\DatabaseFactoryand injected intoApp\\Model\\JobOfferRepository. - See
.env.examplefor variables you may want to set in CI or production.