Crypto Airdrop
Backend Installation
Backend Installation
To install Airdrop API you need to follow the steps below.
Backend files are located under the "airdrop-backend-files" folder.
1. Create a subdomain like airdrop-api.yourdomain.com
2. Upload the Backend files to the airdrop-api.yourdomain.com directory.
3. Create your database with the user - https://www.a2hosting.com/kb/cpanel/cpanel-database-features/managing-mysql-databases
4. Edit the .env file
DB_DATABASE=airdrop
DB_USERNAME=root
DB_PASSWORD=secret
5. Run command (you can skip this part since you have already a /vendor folder):
composer install
6. Run migration command (to setup the database from migrations):
php artisan migrate
7. Create a new file .htaccess on the root directory.
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ /public/$1 [L,QSA]
8. Run the command:
php artisan voyager:install --with-dummy
This command will create a user: admin@admin.com / password to login into the admin.
9. Now you can access the API - https://airdrop-api.yourdomain.com/admin