Skip to content

OsafAliSayed/aikaatib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Kaatib - AI based blog writer

AI Kaatib is a generative AI that lets you write SEO friendly, optimized articles for you blogs.

image

Features

  • Generate SEO friendly articles
  • Generate SEO friendly titles
  • Bulk article generation (Coming soon)
  • Scheduler (Coming soon)

Installation

  1. Clone the repository:
git clone www.github.com/osafalisayed/aikaatib.git
  1. Navigate to the project directory:
cd aikaatib

From here, you can run the project in three ways:

  • Using Docker Compose
  • Using Docker
  • Manually setup frontend and backend

Using Docker Compose

  1. Make sure you have Docker and Docker Compose installed on your machine.

  2. Navigate to the root directory of the project:

  3. Build and run the containers:

docker-compose up --build
  1. Open http://localhost:3000 with your browser to see the result.

Using Docker

  1. Make sure you have Docker installed on your machine.

  2. Navigate to the root directory of the project:

  3. Build the Docker frontend image:

cd frontend
docker build -t frontend .
  1. Build the Docker backend image:
cd backend
docker build -t backend .
  1. Create a network for the containers:
docker network create aikaatib-network
  1. Run the Docker containers:
docker run -d --name backend --network aikaatib-network -p 8000:8000 backend
docker run -d --name frontend --network aikaatib-network -p 3000:3000 frontend
  1. Open http://localhost:3000 with your browser to see the result.

Manual Setup

Frontend Setup

  1. Navigate to the frontend directory:
cd ui
  1. Install dependencies:
npm install
  1. Run the development server:
npm run dev
  1. Open http://localhost:3000 with your browser to see the result.

Backend Setup

  1. Create a virtual environment in root directory:
python3 -m venv venv
  1. Activate the virtual environment:
source venv/bin/activate
  1. Navigate to backend directory and install dependencies:
cd backend
pip install -r requirements.txt
  1. Create a .env file in the backend directory and add the following environment variables:
OPENAI_API_KEY= "your_openai_api_key"
SUPABASE_DATABASE_URL= "your_supabase_database_url"
SUPABASE_URL = "https://your_supabase_url.supabase.co"
SUPABASE_SERVICE_KEY = "your_supabase_service_key"
  1. Make sure supabase is running and the database is created.

  2. Perform database migrations:

python manage.py makemigrations
python manage.py migrate
  1. Start the Django server:
python manage.py runserver
  1. Open http://localhost:8000 with your browser to see the result.

About

This Repository contains the code for our project AI Kaatib.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •