项目作者: randhipp

项目描述 :
Alibabacloud ECS Panel using Laravel & aliyun/openapi-sdk-php end user will able to Start, Stop and Restart an Instance using this rebranding Web App
高级语言: PHP
项目地址: git://github.com/randhipp/alibaba-ecs-cloudpanel-laravel.git
创建时间: 2020-07-27T17:57:50Z
项目社区:https://github.com/randhipp/alibaba-ecs-cloudpanel-laravel

开源协议:MIT License

下载


Alibaba Cloud ECS User Panel

Laravel & Alibaba OpenAPI SDK PHP

Your end user will able to Start, Stop and Restart an Instance using this plain, ready to customize Web App not using Alibaba Console One.

https://jombang.digital/

How To

  • Clone This Repo

  • Copy .env.example to .env => setup your database

  • Go to /database/seeds/

  • Copy UserTableSeeder.example.php to UserTableSeeder.php
  1. <?php
  2. use Illuminate\Database\Seeder;
  3. class UserTableSeeder extends Seeder
  4. {
  5. /**
  6. * Run the database seeds.
  7. *
  8. * @return void
  9. */
  10. public function run()
  11. {
  12. // setup your user, ram secret key, and your instance. Note: do not use your master key, you must assign ram user for each end user.
  13. $user = App\User::create([
  14. 'name' => 'user',
  15. 'email' => 'user@gmail.com',
  16. 'password' => Hash::make('password'),
  17. 'email_verified_at' => now(),
  18. 'alibaba_key' => '___insert_key___',
  19. 'alibaba_secret' => '_____insert_secret_____'
  20. ]);
  21. $instance = new App\Instance([
  22. 'name' => 'ej02-windows-server-2012',
  23. 'instance_id' => 'i-jkalsjdlasjdlasjd' // insert instance ID
  24. ]);
  25. $user->instances()->save($instance);
  26. App\User::create([
  27. 'name' => 'admin',
  28. 'email' => 'admin@gmail.com',
  29. 'password' => Hash::make('password'),
  30. 'email_verified_at' => now(),
  31. 'is_admin' => true
  32. ]);
  33. }
  34. }
  • Run composer install
  • Run php artisan generate
  • Run npm install && npm run dev
  • Run php artisan migrate --seed
  • Run php artisan optimize && php artisan serve
  • Your app will run at http://localhost:8000/