dursuntokgoz / chatgpt-article-generator

Generate unique articles/contents via ChatGPT API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🧠 ChatGPT Article / Content Generator

Welcome to "ChatGPT Article / Content Generator" repository. Delighted to see you here! This is a Laravel script/app that helps you to create by the tone language unique article/content for your blog, news, recipes ...etc websites or you can use this app in your personal research purposes.

chatgpt-article-generator.mp4

Get Started

Installation

First, Setting up your development environment on your local machine:

 git clone https://github.com/mustafatofur/chatgpt-article-generator.git
 cd chatgpt-article-generator
 composer install
 npm install

Rename .env.example to .env and set your OpenAI API key in the .env file:

OPENAI_API_KEY= sk-...

Run The Project

If you would like to make changes on the project run:

npm run dev  

And make sure that you already included @vite() directives:

resources/views/layouts/app.blade.php:

<head>
 	@vite('resources/css/app.css')
</head>
<body>
...
	 @vite('resources/js/app.js')
</body>

And then, run:

php artisan serve

Now kindly access the application via http://localhost:8000

Deploy The Project

Building for production

If you would like to deploy the project after your changes, run:

npm run build

Vite will generate for you asset files under /public/build folder for production:

vite v4.2.1 building for production...
✓ 60 modules transformed.
public/build/manifest.json              0.26 kB
public/build/assets/app-e55e7947.css   25.51 kB │ gzip:  5.34 kB
public/build/assets/app-10a3e433.js   126.33 kB │ gzip: 43.91 kB

Include new asset files to resources/views/layouts/app.blade.php file;

Don't forget to comment out the Vite() directives that is not being used in the production;

<head>
{{-- @vite('resources/css/app.css') --}}
<link rel="stylesheet" href="{{ asset('build/assets/app-e55e7947.css') }}">
</head>
<body>
...
{{-- @vite('resources/js/app.js') --}}
<script type="module" src="{{ asset('build/assets/app-10a3e433.js') }}"></script>
</body>

And you're ready to deploy your project!

Thanks to:

Beside Laravel, this project uses other tools like:

About

Generate unique articles/contents via ChatGPT API


Languages

Language:PHP 64.6%Language:Blade 24.1%Language:Vue 5.4%Language:JavaScript 5.2%Language:CSS 0.6%