https://github.com/newronai/ldai
https://github.com/newronai/ldai
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/newronai/ldai
- Owner: NewronAI
- Created: 2024-03-04T09:51:10.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-19T12:55:45.000Z (almost 2 years ago)
- Last Synced: 2025-10-11T15:13:31.248Z (8 months ago)
- Language: JavaScript
- Size: 4.39 MB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vaani Homepage Project
This project is the homepage for the Vaani project. Below you will find instructions to set up the project and details about the main entry point of the application.
## Project Setup
To set up the project, follow these steps:
1. **Clone the repository:**
```sh
git clone https://github.com/NewronAI/ldai.git
cd ldai
```
2. **Install dependencies:**
```sh
yarn install
```
3. **Run the development server:**
```sh
yarn dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
## Main Entry Point
The main entry point of this project is the `index.js` file located in the `pages` directory.
### Overview of components used in `index.js`
- **Header:** Displays the header of the webpage.
- **Hero:** The main hero section of the homepage.
- **Stats:** Shows various statistics fetched from the API.
- **ExploreData:** Allows users to explore data visually using the indian map.
- **DownloadSection:** Section where user is redirected to data hosting platform.
- **Team:** Information about the team behind the project.
- **ArticlesSection:** Displays articles or posts.
- **Faqs:** Frequently Asked Questions section.
- **Footer:** The footer of the webpage.
### Data Fetching
The `getStaticProps` function handles data fetching from an external API endpoint and prepares it to be passed as props to the `Home` component.
### Revalidation
The `getStaticProps` function revalidates the data every 600 seconds (10 minutes) to ensure the homepage displays up-to-date information.
---
Follow the instructions above to set up and understand the structure of the Vaani homepage project.