Skip to content

Latest commit

 

History

History
103 lines (72 loc) · 2.63 KB

README.md

File metadata and controls

103 lines (72 loc) · 2.63 KB

Elata News Platform

A Next.js-powered news aggregation platform for Elata Biosciences, focusing on neuroscience, mental health research, and computational psychiatry.

You may view the live platform at news.elata.bio.

Overview

This platform automatically aggregates and categorizes news from various sources into key areas:

  • Research News
  • Industry News
  • Biohacking Mental Health
  • Computational & Precision Psychiatry
  • Hardware, Neuroimaging, BCIs
  • DeSci, DAOs, Crypto
  • Off Topic Curiosities

Tech Stack

Development Setup

  1. Install dependencies:
npm install
  1. Run the scraper in the sibling scraper directory to fetch the latest news data
cd ../scraper
npm run build
npm run start
  1. Run the server in the scrapper directory to serve the json dump for this page
npm run serve
  1. Run the Next.js development server, which will proxy the API requests to the scraper server:
npm run dev

Open http://localhost:3000 to view the platform.

Project Structure

web/
├── app/               # Next.js App Router pages
├── components/        # React components
├── lib/               # Utility functions and data fetching
├── public/            # Static assets
└── styles/            # Global styles and Tailwind config

Key Features

  • Static Generation: Pages are statically generated with hourly revalidation
  • Category Filtering: News items can be filtered by category
  • SEO Optimization: Includes metadata, JSON-LD, and OpenGraph tags
  • Responsive Design: Mobile-first approach using Tailwind CSS
  • Share Functionality: Articles can be shared via URL or social media

Deployment

The project is configured for deployment on Vercel:

  1. Push to main branch
  2. Vercel automatically builds and deploys
  3. Static pages are generated at build time
  4. ISR handles data revalidation every hour

Contributing

  1. Create a feature branch
  2. Make your changes
  3. Submit a pull request

Please ensure your PR:

  • Follows the existing code style
  • Includes appropriate tests
  • Updates documentation as needed

Learn More

Support

Join our Discord community for support and discussions.