Skip to content

Latest commit

 

History

History
46 lines (39 loc) · 2.4 KB

README.md

File metadata and controls

46 lines (39 loc) · 2.4 KB

GateKeeper

An open source ticketing solution using Cardano Native Assets. Bridging Web 3.0 to IRL via Blockchain.

Developed by Adam Dean & Latheesan Kanesamoorthy and maintained by the Cardano Community with ❤.

Prerequisite

Local Install

  • Open terminal and type cd $HOME/Desktop
  • Run docker network create --driver bridge local-gatekeeper (Only Required First Time Setup)
  • Clone repo git clone https://github.com/CardanoGateKeeper/Core.git
  • Switch to repo dir cd $HOME/Desktop/GateKeeper
  • Copy docker/docker-compose.custom.yml.example as docker/docker-compose.custom.yml
  • Copy application/.env.example as application/.env
  • Run make buid to build & start the containers
  • Application should be running locally at https://localhost:8020

You can connect to the dev mysql instance via host 127.0.0.1 and port 33020, see credentials in docker/docker-compose.custom.yml

Available Make Commands (Local Development)

  • build Rebuild all docker containers
  • up Restart all docker containers
  • down Shutdown all docker containers
  • composer-install Run composer install
  • db-migrate Run database migration(s)
  • db-refresh Drop all database tables, re-run the migration(s) with seeds
  • status View the status of all running containers
  • logs View the logs out of all running containers
  • shell Drop into an interactive shell inside gatekeeper-web container
  • stats View the resource usage of all running containers
  • artisan Execute Laravel artisan command inside gatekeeper-web container
  • admin Create a new admin user
  • staff Create a new staff user
  • change-password Change user account password

How To Change Application Port

  • You can change the exposed application port by modifying section of gatekeeper-web in docker/docker-compose.custom.yml

How To Change MySQL Credentials

  • You can change the exposed mysql port & database credentials by modifying section of gatekeeper-mysql in docker/docker-compose.custom.yml
  • Then update the application/.env to reflect the new db credentials
  • In production environment, it is recommended to change the database credentials and not expose the mysql ports