This application includes 2 part:
- FE: Using Next.js
- BE: Written in PHP
Clone this project with the following commands:
git clone https://github.com/HaLamUs/magic-link.git
CREATE TABLE `transaction` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`tx_id` varchar(255) NOT NULL,
`txhash` varchar(255) NOT NULL,
`methodId` varchar(255) NOT NULL,
`timeStamp` varchar(255) NOT NULL,
`fromW` varchar(255) NOT NULL,
`toW` varchar(255) NOT NULL,
`account_id` int NOT NULL,
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
);
ALTER TABLE transaction ADD UNIQUE INDEX(tx_id);
Copy .env.example
to .env
file and enter your credential details.
cp .env.example .env
Install the project dependencies and start the PHP server:
composer install
php -S localhost:8000 -t api
- Refactor constants
- Monitor system
- Logger system
https://github.com/shahbaz17/php-rest-api
This repo was developed by @lamha. Follow or connect with me on my LinkedIn.
MIT License