Skip to content

davidcbrl/fidelify-api

Repository files navigation

Fidelify API

Installation

Docker required: how to install. Replace with your project directory path.

compose way

  1. cd <project-dir>
  2. docker compose up -d
  3. docker exec -it fidelify-api bash
  4. composer install
  5. vendor/bin/phinx migrate
  6. php public/index.php
  7. exit

standalone way

  1. cd <project-dir>
  2. docker network create -d bridge local
  3. docker run -d -v <project-dir>/.data/mysql:/var/lib/mysql -p 3306:3306 --env-file .env --network local --name fidelify-db mysql:8.0.13
  4. docker build -t fidelify/phpswoole .
  5. docker run -d -it -v <project-dir>:/api -p 8003:8003 --env-file .env --network local --name fidelify-api fidelify/phpswoole
  6. docker exec -it fidelify-api bash
  7. vendor/bin/phinx migrate
  8. exit

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published