https://github.com/aymdev/fregata-demo
Demo project for Fregata framework
https://github.com/aymdev/fregata-demo
Last synced: about 1 year ago
JSON representation
Demo project for Fregata framework
- Host: GitHub
- URL: https://github.com/aymdev/fregata-demo
- Owner: AymDev
- License: mit
- Created: 2021-05-22T08:59:05.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-24T12:53:15.000Z (about 5 years ago)
- Last Synced: 2025-02-08T21:16:36.008Z (over 1 year ago)
- Language: PHP
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Fregata demo project
Simple [Fregata](https://github.com/AymDev/Fregata) v1 project setup using **Docker Compose** with a migration from a
**MySQL** to a **PostgreSQL** database.
# Installation
Clone this repository:
```shell
git clone https://github.com/AymDev/Fregata-demo.git
```
Or install it from **Composer**:
```shell
composer create-project aymdev/fregata-demo
```
Use the **Makefile** commands to build, start and open a Bash session into the app:
```shell
make start && make shell
```
# Usage
A **demo_migration** is provided with this project. It will create (or re-create) the *source* (MySQL) and *target*
(PostgreSQL) databases, and generate fake data in the *source*.
Run the migration:
```shell
php vendor/bin/fregata migration:execute demo_migration
```