Is an application for registered blog users with several great features and templates.
-
Cloning Project
-
Change file env
rename copy-env .env
- Edit file env
Change the database with your database server, uncomment premium.type, midtrans and email
- Key generate
php spark key:generate
- Install composer
composer install
- Install in one action (Include migrate & dbseed)
php spark app:install
- email: [email protected], pw: 12345678
- email: [email protected], pw: 12345678
- email: [email protected], pw: 12345678
- email: [email protected], pw: 12345678
- email: [email protected], pw: 12345678
php spark serve
<?php
$routes->group('api', function($routes)
{
$routes->get('verified-email', 'AuthController::verifiedcode');
$routes->get('reset-code', 'AuthController::resetcode');
$routes->post('login', 'AuthController::login');
$routes->post('register', 'AuthController::register');
$routes->post('contact-us', 'AuthController::sendcontactus');
$routes->add('list', 'Admin\Users::list');
$routes->resource('article', ['controller' => 'ArticleController']);
$routes->resource('article-subscribe', ['controller' => 'ArticleSubscribe']);
$routes->resource('article-viewer', ['controller' => 'ArticleViewerController']);
$routes->resource('article-favorite', ['controller' => 'ArticleFavoriteController']);
$routes->resource('article-share', ['controller' => 'ArticleShareController']);
$routes->resource('user', ['controller' => 'UserController']);
$routes->resource('user-report', ['controller' => 'UserReportController']);
$routes->resource('user-notification', ['controller' => 'UserNotificationController']);
$routes->resource('user-ui', ['controller' => 'UserUiController']);
$routes->resource('comment', ['controller' => 'CommentController']);
$routes->resource('category', ['controller' => 'CategoryController']);
$routes->get('dashboard/(:num)', 'UserController::dashboard/$1');
$routes->get('usrfile/(:num)/(:any)', 'FileController::index/$1/$2');
$routes->post('upload-usrfile', 'FileController::upload');
$routes->get('search/article', 'ArticleController::search');
$routes->get('search/category', 'CategoryController::search');
$routes->get('search/comment', 'CommentController::search');
$routes->get('search/user', 'UserController::search');
$routes->get('article-category/(:num)', 'ArticleController::category/$1');
$routes->get('storage', 'FileController::storage');
$routes->get('storage/usage', 'FileController::usage');
$routes->get('valid', 'AuthController::valid');
$routes->get('pay/status/(:num)', 'PaymentController::status/$1');
$routes->get('pay/approve/(:num)', 'PaymentController::approve/$1');
$routes->get('pay/cancel/(:num)', 'PaymentController::cancel/$1');
$routes->get('pay/expire/(:num)', 'PaymentController::expire/$1');
$routes->get('pay/check/(:num)', 'PaymentController::check/$1');
$routes->get('pay', 'PaymentController::pay');
$routes->post('pay', 'PaymentController::index');
$routes->get('pay/me', 'PaymentController::me');
$routes->get('price', 'PaymentController::price');
$routes->post('user-ui/update/(:num)', 'UserUiController::update/$1');
$routes->post('users/update/(:num)', 'UserController::update/$1');
});
?>
On first time or installation, Your mut be write:
npm install
Command for development
npm run build
Command for production
npm run production
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- axios@^0.21.1
- dropzone@^5.7.2
- [email protected]
- [email protected]
- [email protected]
- googlechart
- [email protected]
- fakerphp/[email protected]
- Midtrans
- Firebase/JWT
PHP version 7.2 or higher is required, with the following extensions installed:
Additionally, make sure that the following extensions are enabled in your PHP:
- json (enabled by default - don't turn it off)
- xml (enabled by default - don't turn it off)
- mysqlnd
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.