Skip to content

Example showing how to implement a full blog with AI capabilities written in Python and NodeJS.

Notifications You must be signed in to change notification settings

metacall/polyglot-blog-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Polyglot Blog Application

Overview

This full-stack blog application supports CRUD operations for blog posts, which can be written and rendered in Markdown. It also features a summarization capability powered by Python through MetaCall, offering a variety of AI services to choose from.

Showcase

Showcase Link

Features

  1. 📝 Create, edit, and delete blog posts
  2. 🔍 Retrieve blog posts via REST APIs
  3. 📄 Write and render blog posts in Markdown
  4. 🤖 AI-Powered Summarization (via Python & MetaCall)
  5. ⚡ Supports multiple AI services for summarization (e.g., Gemini, Hugging Face, Claude, OpenAI, etc.)

Requirements

Ensure you have the following installed before running the application:

  1. Nodejs
  2. Metacall CLI

Environment Configuration

Before running the project, navigate to the server directory, rename .env.example to .env, and add your configurations like:

MONGO_URI=your_mongodb_connection_string
PORT=4000

HUGGING_FACE_KEY=your_api_key
OPENAI_API_KEY=your_api_key
GEMINI_KEY=your_api_key
EDEN_Authorization=your_api_key
ANTHROPIC_API_KEY=your_api_key
DEEPSEEK_API_KEY=your_api_key

Installation

  1. Clone the repository:
git clone https://github.com/mohyware/polyglot-blog
  1. Install MetaCall CLI (More Info):
curl -sL https://raw.githubusercontent.com/metacall/install/master/install.sh | sh
  1. Backend (Server) Setup
cd server
metacall npm install
metacall pip3 install dotenv huggingface_hub openai anthropic genai
  1. Frontend (Client) Setup
cd client
npm install

Usage

  1. Start the Backend Server
cd server
npm run dev  # Start development mode
# OR
npm start    # Run production mode
  1. Start the Frontend Client
cd client
npm run dev  # Start development mode
# OR
npm run build  # Build the project before running start
npm start      # Run production mode
  1. Open your browser and navigate to http://localhost:3000

Run tests

You can run tests by executing the following command:

cd client
npm run test
cd server
npm run test

About

Example showing how to implement a full blog with AI capabilities written in Python and NodeJS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published