A modern media sample site built with Next.js and Kuroco headless CMS. This template demonstrates how to create a fully functional media site with content management capabilities.
- Content Management
- Article list and detail pages
- Ranking display
- Featured articles
- Category and tag search
- Keyword search
- Contact Form
- Dynamic form fields
- Form submission handling
- Member Features
- User registration and withdrawal
- Login/logout functionality
- Profile management
- Password reminder
- Member-only articles
- Favorites system
- Technical Features
- 📱 Responsive design
- 🚀 SSG (Static Site Generation) for performance
- 🔍 SEO optimized
- 🎨 Clean, customizable styling
- Frontend: Next.js 15.3.2, React 19.1.0
- Styling: Tailwind CSS 3.4.17, Sass 1.69.5
- Backend: Kuroco CMS (Headless CMS)
- Deployment: Any hosting service
- Additional: clsx for conditional styling
Before deploying this template, you'll need:
- Kuroco Account - Sign up for free trial
- Kuroco Sub-site - Create a sub-site using the
[Template]Next Media(Default)template - GitHub Account - For repository management
-
Register for Kuroco
- Visit Kuroco free trial page
- Fill in the required information and click "Register"
- Check your email for the registration confirmation
-
Create a Sub-site
- Go to [Environment Settings] → [Site List]
- Click [Add]
- Set the copy source site name to
[Template]Next Media(Default) - Fill in the required fields and click [Add]
-
Note your API domain
- Find your API domain in Account Settings or the Endpoint List page
- It will look like:
https://your-instance.a.kuroco.app - You'll need this for the next step
For detailed setup instructions, follow the Kuroco Media Sample Site Tutorial.
Before deployment, prepare your environment variable:
| Variable | Description | Example |
|---|---|---|
NEXT_PUBLIC_BASE_URL |
Your Kuroco API domain | https://your-instance.a.kuroco.app |
*You can find your API domain in Account Settings or the Endpoint List page in your Kuroco admin panel.
Click the deploy button below to create your own copy:
During deployment, you'll be prompted to enter your NEXT_PUBLIC_BASE_URL value from Step 2.
After deployment, you need to configure CORS to allow your frontend to access the Kuroco API:
- Go to [API] → [Default] in your Kuroco admin panel
- Click "Set up CORS"
- Add the following origins to CORS_ALLOW_ORIGINS:
http://localhost:3000(for local development)https://your-vercel-app.vercel.app(your deployed Vercel URL)
- Click "Save"
*Without proper CORS configuration, your frontend will not be able to fetch data from the Kuroco API, resulting in API errors.
To run the project locally:
# Clone the repository
git clone https://github.com/diverta/front_next_media.git
# Navigate to the project directory
cd front_next_media
# Install dependencies
npm install
# Configure environment variables
# Edit .env file and set your Kuroco API domain
NEXT_PUBLIC_BASE_URL=https://your-instance.a.kuroco.app
# Start development server
npm run devOpen http://localhost:3000 in your browser.
front_next_media/
├── src/
│ ├── app/ # Next.js App Router pages
│ ├── components/ # React components
│ ├── constants/ # Application constants and configuration
│ ├── contexts/ # React context providers for state management
│ ├── fetch/ # API functions and data fetching utilities
│ └── styles/ # Sass/CSS styles
├── public/ # Static assets
└── README.md
This project uses a combination of styling approaches:
- Tailwind CSS: Utility-first CSS framework for rapid development
- Sass: For custom styles and advanced CSS features
- clsx: For conditional class name management
- Responsive Design: Mobile-first approach with custom breakpoints
The site connects to Kuroco CMS through REST API. Configure your API settings in:
- Environment variables for production
.envfile for local development
Manage your content through the Kuroco admin panel:
- Log in to your Kuroco instance
- Navigate to the content management section
- Create and edit your media content
- Enable "GitHub Actions workflow" for automatic deployment
- Article lists and detail pages use SSG for optimal performance
- Content updates trigger automatic rebuild via GitHub Actions
- Reduces API requests and improves page load times
We welcome contributions! Please see our Contributing Guide for details.
This project is licensed under the MIT License - see the LICENSE file for details.
Need help? We're here to assist you:
- Slack Community: Join Kuroco Support Slack - Get quick help from the community
- Support Form: Submit a ticket - For detailed technical support
- Documentation: Kuroco Docs - Comprehensive guides and references
- Issues: GitHub Issues - Report bugs or request features
After deployment, you can:
- Customize the design - Modify Tailwind classes and Sass styles
- Add new features - Extend functionality as needed
- Configure SEO - Optimize meta tags and structured data
- Set up analytics - Track your site performance
- Implement CI/CD - Automate deployments with GitHub Actions