{"id":14974760,"url":"https://github.com/dbsetyawan/news-management-application","last_synced_at":"2026-01-18T20:02:30.405Z","repository":{"id":39212037,"uuid":"243431179","full_name":"DBSetyawan/news-management-application","owner":"DBSetyawan","description":"New management","archived":false,"fork":false,"pushed_at":"2023-01-05T08:26:57.000Z","size":4822,"stargazers_count":1,"open_issues_count":29,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T17:13:39.435Z","etag":null,"topics":["back-end","developer","development","laravel-framework","laravel6","molecool","passport","redis","redis-server"],"latest_commit_sha":null,"homepage":null,"language":"TSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DBSetyawan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-27T04:33:49.000Z","updated_at":"2023-09-04T09:44:42.000Z","dependencies_parsed_at":"2023-02-03T20:31:15.030Z","dependency_job_id":null,"html_url":"https://github.com/DBSetyawan/news-management-application","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DBSetyawan%2Fnews-management-application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DBSetyawan%2Fnews-management-application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DBSetyawan%2Fnews-management-application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DBSetyawan%2Fnews-management-application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DBSetyawan","download_url":"https://codeload.github.com/DBSetyawan/news-management-application/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247217221,"owners_count":20903009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["back-end","developer","development","laravel-framework","laravel6","molecool","passport","redis","redis-server"],"created_at":"2024-09-24T13:51:02.643Z","updated_at":"2026-01-18T20:02:30.369Z","avatar_url":"https://github.com/DBSetyawan.png","language":"TSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e Access admin\n\n\u003cimg src=\"public/img-apps/projects.png\" title=\"FVCproductions\" alt=\"FVCproductions\"\u003e\n\n\u003e Access user non-admin\n\n \u003cimg src=\"public/img-apps/user-access.png\" title=\"FVCproductions\" alt=\"FVCproductions\"\u003e\n\n\u003e Exception connection redis\n\n \u003cimg src=\"public/img-apps/exception-redis-server.png\" title=\"FVCproductions\" alt=\"FVCproductions\"\u003e\n\n# Repository Application news managements\n\n**Package Depedencies**\n\n- Laravel 6.x\n- Composer\n- php 7.2.*\n- Redis 3.0.5 (stable) version\n- Nginx\n- Valet\n- etc.\n\n**Package dev-Depedencies**\n\n- laravel passport\n- Predis 1^ version\n\n\n### Petunjuk (started redis [local])\n\n    1. install redis 3.0.5^\n    2. start redis 3.0.5^ on your local\n    3. running application\n\n### Queue redis to work?\n\n    Sebelum menuju action menu button reply comment / Add Comment\n    pada menu detail post (action edit), pastikan anda menjalankan php artisan queue:work.\n\n\n### Petunjuk (Installasi applikasi)\n\n   1. cd [project]\n   2. composer install\n   2. npm install\n   3. php artisan migrate\n   4. php artisan passport:install\n   5. (saya running by valet web server nginx) *not php artisan serv (automatically)\n   6. pastikan environment pada .env sesuai dengan development yang anda pakai.\n\n**Redis running** : Testing Comments Queue using redis.\n\n![news apps](public/img-apps/vKGPbbhUIw.gif)\n\n\u003e Get started \n\n### Petunjuk (Registrasi User)\n---\n    Saya menyarankan untuk registrasi awal dengan Username/name (attribute):\n      - users (non-admin)\n      - admin (admin)\n---\n- **Refs middleware by protected Privilages**\n    - blob master at \u003ca href=\"https://github.com/DBSetyawan/news-management-application/blob/master/app/Http/Middleware/SessionPrivilages.php\" target=\"_blank\"\u003e`SessionPrivilages`\u003c/a\u003e\n- **Kernel**\n    \n    -`'Privilages' =\u003e \\App\\Http\\Middleware\\SessionPrivilages::class`\n\n\u003e Logic update dan store post with dynamic show/update(file img) \n\n```php\n    /**\n     * logic process posted comments with image [fixed].\n     *\n     * @param  \\Illuminate\\Http\\Request  $request\n     * @param  @table.post.id -\u003e $id\n     * @return \\Illuminate\\Http\\Response\n     */\n    public function UpdateChangedPosted(Request $request, $id){\n        \n        $input = $request-\u003eall();\n        $post = Post::whereIn('id',[$input['post_id']])-\u003efirst();\n\n        if($request-\u003ehasFile('file'))\n        {\n            $image_name = $request-\u003efile('file')-\u003egetClientOriginalName();\n            $filename = pathinfo($image_name,PATHINFO_FILENAME);\n            $image_ext = $request-\u003efile('file')-\u003egetClientOriginalExtension();\n            $fileNameToStore = $filename.'-'.time().'.'.$image_ext;\n            $path = $request-\u003efile('file')-\u003estoreAs('public/News',$fileNameToStore);\n           \n        }  \n            else {\n\n                $fileNameToStore = $post-\u003efile;\n\n        }\n\n        $storagePath  = Storage::disk('public')-\u003egetDriver()-\u003egetAdapter()-\u003egetPathPrefix();\n        $datapath = $storagePath.'News\\\\'.$post-\u003efile;\n\n        if(file_exists($datapath)){\n            Storage::delete($datapath);\n            $post-\u003efile = $fileNameToStore;\n            $post-\u003esave();\n        }\n\n        $data = Comment::where('id', $input['parent_id'])-\u003eupdate(['body' =\u003e implode('', $input['body'])]);\n   \n        event(new EventUpdatedPost($input));\n                \n        return back();\n\n    }\n\n     /**\n     * Store a newly created resource in storage.\n     *\n     * @param  \\Illuminate\\Http\\Request  $request\n     * @return \\Illuminate\\Http\\Response\n     * @return \\Illuminate\\Http\\ProcessComment Queue\n     */\n    public function store(Request $request)\n    {\n    \t$request-\u003evalidate([\n            'body'=\u003e'required',\n        ]);\n   \n        $input = $request-\u003eall();\n        $input['user_id'] = auth()-\u003euser()-\u003eid;\n    \n        $comment = Comment::create($input);\n\n        ProcessComment::dispatch($comment);\n            \n        return back();\n    }\n```\n\n### Petunjuk (Queue Comments)\n\n    1. Install redis 3.0.5 (stable) from redis.io\n    2. Masuk pada menu manage post.\n    3. Berikan komentar pada post yang tersedia. \n    4. Comments Queue akan menunggu prosesnya \n\n***Tampilan Proses queue work berhasil dieksekusi***\n\n[![FVCproductions](public/img-apps/queue-work.png)]() \n\n---\n \n **API docs with passport(DEFAULT)**\n\n***Tampilan API registrasi***\n\n[![FVCproductions](public/img-apps/api-register.png)]() \n\n***Tampilan API login***\n\n[![FVCproductions](public/img-apps/api-login.png)]()\n\n## RESPONSE JSON\n\n- **RESPONSE API PAG at \u003ca href=\"https://github.com/DBSetyawan/news-management-application/tree/a1fc5db66999665c1806e030cdf071ccf79208e2/public/json_response\" target=\"_blank\"\u003e`JSON RESPONSE`\u003c/a\u003e**\n    - [ GET ALL RESOURCES | MAKE PAGINATE POSTED COMMENTS ]\n---\n\n## Support\n\nReach out to me at one of the following places!\n\n- Portfolio at \u003ca href=\"https://dbsetyawan.github.io/portfolio\" target=\"_blank\"\u003e`Daniel Budi Setyawan`\u003c/a\u003e\n---\n\n## License\n\n[![License](https://img.shields.io/:license-mit-blue.svg?style=flat-square)](http://badges.mit-license.org)\n\n- **[MIT license](http://opensource.org/licenses/mit-license.php)**\n- Copyright 2020 © \u003ca href=\"https://dbsetyawan.github.io/portfolio\" target=\"_blank\"\u003eDaniel\u003c/a\u003e.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbsetyawan%2Fnews-management-application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbsetyawan%2Fnews-management-application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbsetyawan%2Fnews-management-application/lists"}