https://github.com/smeghead/phel-old-school-guestbook
Simple old school guestbook
https://github.com/smeghead/phel-old-school-guestbook
Last synced: 2 months ago
JSON representation
Simple old school guestbook
- Host: GitHub
- URL: https://github.com/smeghead/phel-old-school-guestbook
- Owner: smeghead
- License: mit
- Created: 2024-04-24T11:55:07.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-22T03:37:15.000Z (10 months ago)
- Last Synced: 2025-02-07T22:53:45.509Z (4 months ago)
- Language: PHP
- Size: 48.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# phel-old-school-guestbook
Simple old school guestbook.
This repository is a very primitive project of a small bulletin board Phel-lang application using mysql for storage.
Using Docker, you can prepare an environment that runs PHP and Phel-lang using apache and mysql.
## Usage
Build and launch the Docker image.
It will take some time to start up.```bash
docker compose build --build-arg uid="$(id -u)"
docker compose up -d
```Install dependent libraries.
```bash
docker compose exec php bash
www-data@6298268e0b08:~/html$ composer install```
In your browser, open http://localhost:3333/

### Compile phel code to PHP code
By default, phel code is compiled and executed for each request. Compiling phel code to PHP code will make it run faster.
```bash
docker compose exec php bash
www-data@6298268e0b08:~/html$ vendor/bin/phel build
```## Development
Start bash in the docker php container.
```bash
docker compose up -d
docker compose exec php bash
```