API server
1 composer install
2 cp .env.example .env
3 vi .env # Update database settings.
4 wget https://github.com/vrana/adminer/releases/download/v4.8.1/adminer-4.8.1-mysql-en.php -O public/adminer.php # Create database via adminer
5 php artisan migrate
6 touch /var/www/html/storage/logs/laravel.log
7 chmod a+w /var/www/html/storage/logs/laravel.log
8 chown -R www-data:www-data /var/www/html/storage/framework/cache
Test API server
POST: https://example.com/api/playgrounds
{
"html": "Hello Play!",
"css": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n",
"config": "/** @type {import('tailwindcss').Config} */\nmodule.exports = {\n theme: {\n extend: {\n // ...\n },\n },\n plugins: [],\n}\n",
"version": "3"
}
Links
- https://vercel.com/dashboard
- https://github.com/ranqiangjun/play.tailwindcss.com
- https://github.com/ranqiangjun/tailwind-play-api
- http://play.ranqiangjun.com/
- http://play.ranqj.com/
Tags
Category