Skip to content

Sunlight-dev/SocialPlug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

320 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧭 SocialPlug

A modern full-stack platform for managing and presenting services, free tools, articles, and blogs—powered by a Strapi headless CMS backend and a Next.js frontend with multi-language support.


📚 Table of Contents


🧩 About

This project provides an intuitive interface for managing services, free tools, articles, and blog content efficiently. It solves the need for a flexible, content-driven website with a powerful admin panel (Strapi) and a fast, localized frontend (Next.js). Key goals include headless content management, SEO-friendly pages, and a smooth experience across multiple languages (e.g. English, Spanish, Portuguese).


✨ Features

  • Headless CMS – Manage articles, services, free tools, and sub-services via Strapi admin with rich editing (CKEditor) and SEO plugins.
  • Multi-language frontend – Next.js app with next-intl for locales (e.g. en, es-ES, pt-BR) and locale-aware routing.
  • Services & free tools – Structured content types for services, sub-services, free services, and free tools with detailed metadata.
  • Blogs & articles – Article and category content types with flexible components (chapters, sections, author, etc.).
  • Authentication – NextAuth integration for secure sign-in and user management.
  • Modern UI – Tailwind CSS, Lottie animations, Swiper carousels, and responsive layouts.

🧠 Tech Stack

Category Technologies
Languages TypeScript, JavaScript
Frontend Next.js 15, React 19, Tailwind CSS
Backend/CMS Strapi 5.9
Database SQLite (better-sqlite3) / PostgreSQL (pg)
Auth NextAuth, Strapi Users & Permissions
Tools Axios, next-intl, Lottie, Swiper, Mongoose (client)

⚙️ Installation

# Clone the repository
git clone https://github.com/yourusername/SocialPlug.git

# Navigate to the project directory
cd SocialPlug

# Install server (Strapi) dependencies
cd server && yarn install   # or npm install

# Install client (Next.js) dependencies
cd ../client && npm install   # or yarn install

🚀 Usage

Run the Strapi backend (admin + API):

cd server
yarn develop   # or npm run develop

Then open the Strapi admin:
👉 http://localhost:1337/admin

Run the Next.js frontend:

cd client
npm run dev   # or yarn dev

Then open your browser:
👉 http://localhost:3000


🧾 Configuration

Create a .env file in the appropriate folder as needed.

Server (server/.env):

  • HOST, PORT – Strapi host and port (e.g. PORT=1337)
  • DATABASE_CLIENTsqlite or postgres
  • For PostgreSQL: DATABASE_HOST, DATABASE_PORT, DATABASE_NAME, DATABASE_USERNAME, DATABASE_PASSWORD
  • APP_KEYS, API_TOKEN_SALT, ADMIN_JWT_SECRET, TRANSFER_TOKEN_SALT, JWT_SECRET – Strapi security keys

Client (client/.env or client/.env.local):

  • NEXTAUTH_SECRET – Secret for NextAuth
  • NEXTAUTH_URL – e.g. http://localhost:3000
  • STRAPI_URL or NEXT_PUBLIC_STRAPI_URL – Strapi API base URL (e.g. http://localhost:1337)

🖼 Screenshots

Add demo images, GIFs, or UI preview screenshots here.

Example:


📜 API Documentation

The Strapi server exposes a REST API. After running the server with the Documentation plugin, open:

👉 http://localhost:1337/documentation

Example content types and endpoints:

Method Endpoint Description
GET /api/articles List articles
GET /api/services List services
GET /api/subservices List sub-services
GET /api/free-services List free services
GET /api/free-tools List free tools
GET /api/article-categories List article categories

Use Strapi’s built-in documentation for full request/response details and authentication.


🌟 Acknowledgements

  • Strapi – Headless CMS
  • Next.js – React framework
  • Tailwind CSS – Styling
  • next-intl – Internationalization
  • Inspiration or resources used; libraries, icons, or tutorials referenced; collaborators or contributors.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors