forevermatt / budget-data-api-php

A PHP implementation of the Budget Data API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Budget Data API (PHP)

A PHP implementation of the Budget Data API

Development

To bring up a local copy of this for development purposes:

  1. Copy the local.env.dist file to local.env and provide values.
  2. Start Docker on your computer (e.g. Docker Desktop).
  3. Bring up the various docker containers: docker-composer up -d
  4. Log into phpMyAdmin at http://localhost:8080/
    • The username is "root"
    • The password is the MYSQL_ROOT_PASSWORD value defined in the docker-composer.yml file
  5. Create a new user and corresponding table, matching the username you provided in the local.env file.
    • Click "User accounts" in the top menu.
    • Click "Add new user".
    • Enter the name and password you provided in your local.env file.
    • Check the "Create database with same name and grant all privileges" option.
    • Click "Go" (bottom right).
  6. Run the database migrations
    • Run docker-compose exec php bash (or, if on Windows, winpty docker-compose exec php bash)
    • Run ./yii migrate and answer "Yes" at the prompt(s)
  7. Go to http://localhost:8000 to view the running website.

Reference

About

A PHP implementation of the Budget Data API

License:MIT License


Languages

Language:PHP 92.4%Language:Shell 3.3%Language:CSS 1.9%Language:Awk 1.3%Language:Batchfile 1.1%Language:Makefile 0.1%