Skip to content

Repository files navigation

ci3-test

A dummy task tracker application to reacquaint myself with CodeIgniter 3.

  • PHP 7.4
  • MySQL 5.7

Setup

  1. Run the Docker containers

    docker compose up -d
  2. Install PHP dependencies

    docker compose exec app composer install
  3. Install frontend dependencies

    docker compose exec app pnpm install
  4. Build frontend assets

    docker compose exec app pnpm build
  5. Migrate the database

    docker compose exec app composer run migrate:current
  6. Seed the database

    • Creates three users with password of password:
      • admin@example.com
      • manager@example.com
      • user@example.com
    docker compose exec app composer run seed
  7. Navigate to http://localhost:8080 in your browser

Scripts

All of these scripts are intended to be run inside the app container so they should be prefixed with:

docker compose exec app

or run from inside the container:

docker compose exec app bash

Database

Migrations

Seed Data

  • Seed the database with test data:

    composer run seed

Frontend

  • Run the Vite dev server:

    pnpm dev
  • Build the frontend assets with Vite:

    pnpm build
  • Check for formatting issues in frontend code with Prettier:

    pnpm format:check
  • Fix formatting issues in frontend code with Prettier:

    pnpm format

About

Dummy application to reacquaint myself with CodeIgniter 3.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages