Tsafi is an AI-powered Content Management System (CMS) that helps users create and manage their blog sites and content efficiently.
Before you begin, ensure you have met the following requirements:
Clone the repository:
git clone https://github.com/yourusername/tsafi-cms.git
Navigate to the project directory:
cd tsafi-cms
Install dependencies:
npm install
or
yarn install
Create a .env.local
file in the root directory of the project.
Add the following environment variables to the .env.local
file:
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your_clerk_publishable_key
CLERK_SECRET_KEY=your_clerk_secret_key
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/
SUPABASE_URL=your_supabase_project_url
SUPABASE_SECRET_KEY=your_supabase_secret_key
OPENAI_API_KEY=your_openai_api_key
UPLOADTHING_SECRET=your_uploadthing_secret
UPLOADTHING_APP_ID=your_uploadthing_app_id
BASE_DOMAIN=your_base_domain
Replace the placeholder values with your actual API keys and configuration details.
Start the development server:
npm run dev
or
yarn dev
Open your browser and navigate to http://localhost:3000
.
Sign in or create an account to start using Tsafi CMS.
Create a new site, manage content, and publish articles using the intuitive interface.
The main API route is located at app/api/chat/route.ts
. It handles various functions including:
For detailed API documentation, please refer to the comments in the source code.
Contributions to Tsafi CMS are welcome! Here's how you can contribute:
git checkout -b feature/your-feature-name
.git commit -m 'Add some feature'
.git push origin feature/your-feature-name
.Please make sure to update tests as appropriate and adhere to the existing coding style.