Skip to main content

Install the open edition

This guide takes you from an empty machine to a running portal with a back-office account.

What you need​

  • PHP 8.4 with the pdo_mysql, intl, gd, zip, bcmath, exif and pcntl extensions
  • Composer 2
  • Node 26 and npm (the version is in .nvmrc)
  • MariaDB 11.4 or newer, with an empty database and a user that owns it
  • Redis, only if you want it for the cache or the queue

1. Get the code and its packages​

git clone https://github.com/jasonv-tech/hometown.git
cd hometown
composer install
npm ci

2. Settings​

cp .env.example .env
php artisan key:generate

Open .env and set at least:

  • APP_URL: the address you will open in the browser, for example http://127.0.0.1:8000
  • DB_HOST, DB_PORT, DB_DATABASE, DB_USERNAME and DB_PASSWORD: your database

The rest can wait. Every outside service (email, texts, payments, Google, push) stays off until it has a key.

3. Tables and demo data​

php artisan migrate --seed

This creates the tables and fills in the store's first-party plugins, the badges and quests, and ten demo labor rates for the calculator. It takes about a minute.

4. The web pages​

npm run build

While you change the front end, npm run dev rebuilds it as you save.

5. Run it​

php artisan serve
php artisan queue:work
php artisan schedule:work

Run each in its own terminal. The first serves the site, the second sends emails and runs background work, and the third runs reminders and daily tasks.

Check the install:

php artisan community:doctor

Every line should say ok. Open http://127.0.0.1:8000/register, choose Pro and create an account.

6. Your back-office account​

php artisan staff:grant you@example.com --role=super_admin --name=You

It sends a code to set the password. With the default MAIL_MAILER=log, the email lands in storage/logs/laravel.log once queue:work runs. Go to /login, choose Forgot password, enter the code and pick a password. The back office is at /dashboard/v2. It asks for a two-factor app the first time; to skip that on your own machine, set TWO_FACTOR_ENFORCE=false.

7. Sending email​

To send real email, set MAIL_MAILER=smtp with MAIL_HOST, MAIL_PORT, MAIL_USERNAME, MAIL_PASSWORD and MAIL_FROM_ADDRESS. MAIL_SUPPORT_ADDRESS is where contact messages and new-pro alerts go.

With Docker​

compose.yaml runs the site, a queue worker, the scheduler, MariaDB and Redis:

cp .env.example .env
# In .env: DB_HOST=mariadb, DB_DATABASE=hometown, DB_USERNAME=hometown, DB_PASSWORD=hometown,
# REDIS_HOST=redis, APP_URL=http://localhost:8080
docker compose run --rm app php artisan key:generate --show # put the key in .env as APP_KEY
docker compose up -d
docker compose exec app php artisan migrate --seed --force

The site is at http://localhost:8080.

Next​