Skip to content

added events and news

Kuruva Laxmi requested to merge events into viswam/website

What does this MR do?

This merge request adds the News and Events modules to the VISWAM.AI backend using Strapi.

It introduces:

A News collection type for managing blog/news content.

An Event collection type for managing upcoming events.

A reusable Speaker component for event speakers.

Public API access configuration for frontend integration.

Motivation / Use Case

Previously, the application did not have a structured way to manage:

News articles

Event details

Speaker information

This feature improves content management by:

Allowing dynamic news publishing.

Enabling structured event creation.

Supporting reusable speaker components.

Making content available via REST APIs for frontend consumption.

It enables the frontend to dynamically fetch:

/api/news-items /api/events

with full population support.

Implementation Notes

Created News collection type with fields:

title

slug (UID linked to title)

publish_date

summary

full_content (Rich Text)

featured_image (Media - single)

external_link

Created Event collection type with fields:

title

slug (UID)

date

time

location

description (Rich Text)

image (Media - single)

registration_link

speakers (repeatable component)

Created reusable component:

shared.speaker

name

role

bio

photo

Enabled public API permissions for:

find

findOne

No breaking changes introduced.

Fully backward compatible with existing modules.

How to Test

Checkout this branch:

git checkout feature/news-events

Install dependencies:

npm install

Run the Strapi server:

npm run develop

Open browser and test APIs:

http://localhost:1337/api/news-items?populate=* http://localhost:1337/api/events?populate=*

Verify:

News entries are returned

Events are returned with speakers

Media fields are populated correctly

Checklist

Content types created correctly

Slug auto-generation configured

Components reusable

Public API permissions configured

No breaking changes

Tested locally

Related Issues or Discussions

Implements News & Events backend module Related to project roadmap content system.

Merge request reports

Loading