Invoice management system built on top of Cardano blockchain & integrated with AdaPay.
- Linux OS
- Make
- Git
- Docker / Docker-Compose
- Open terminal and type
cd $HOME/Desktop
- Run
docker network create --driver bridge local-mercury-invoice
(Only Required First Time Setup) - Clone repo
git clone git@github.com:latheesan-k/MercuryInvoice.git
- Switch to repo dir
cd $HOME/Desktop/MercuryInvoice
- Copy
application/.env.example
asapplication/.env
- Run
make buid
to build & start the containers - Application should be running locally at
http://localhost:8007
- Local MySQL server can be accessed via port 33007 (credentials in docker-composer.yml file)
build
Rebuild all docker containersup
Restart all docker containersdown
Shutdown all docker containerscomposer-install
Run composer installdb-migrate
Run database migration(s)db-refresh
Drop all database tables, re-run the migration(s) with seedsstatus
View the status of all running containerslogs
View the logs out of all running containersshell
Drop into an interactive shell inside mercury-invoice-web containerstats
View the resource usage of all running containersartisan
Execute Laravelartisan
command inside mercury-invoice-web containerfrontend-dev
Installs the frontend assets command inside mercury-invoice-frontend containerfrontend-watch
Runnpm run watch
command inside mercury-invoice-frontend container
- Install docker by following the guides on https://docs.docker.com/engine/install/ubuntu/ (see
Install Docker Engine
section) - Now follow these steps give docker correct permissions https://docs.docker.com/engine/install/linux-postinstall/
- Install docker-compose by following this guide https://docs.docker.com/compose/install/ (select
Linux
tab) - Ensure you have GIT installed https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
- Ensure you have
Makefile
installed withsudo apt install makefile -y