Modern guestbooks for GitHub.
Work in progress!
GitGuestbook requires PHP 8 or greater. You'll also need Composer, Node.js with Yarn and a database (I used PostgreSQL).
- Install dependencies
composer install
- Either create a
.env.local
file from.env
template:
cp .env .env.local
or provide the environment variables manually.
PLEASE make sure that the APP_ENV
variable
is set to either dev
or prod
!
Deploying on the dev
environment poses a major security risk!
- Create the database and apply migrations:
php bin/console doctrine:database:create
php bin/console doctrine:migrations:migrate
- Install Node.js dependencies and build static assets:
yarn install
# for development
yarn watch
# for production
yarn build
- Now you can run the built-in PHP web server
php -S localhost:8000 -t public
or use a specialized one, such as nginx or Apache.
Make sure that you point it at the public/
catalog!
Running the test suite:
php bin/phpunit