This project was generated from create.xyz.
It is a Next.js project built on React and TailwindCSS.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
You can start editing the code in src. The page auto-updates as you edit the file.
To search for all JSON files in the data/experts directory, you can use any of these methods:
- Using the command line:
# From project root
ls src/data/experts/*.json
# or
find src/data/experts -name "*.json"- Using Node.js:
const fs = require('fs');
const path = require('path');
const expertsDir = path.join(__dirname, 'src/data/experts');
const expertFiles = fs.readdirSync(expertsDir)
.filter(file => file.endsWith('.json'));- Using glob pattern:
const glob = require('glob');
// Get all JSON files in experts directory
const expertFiles = glob.sync('src/data/experts/*.json');To learn more, take a look at the following resources:
- React Documentation - learn about React
- TailwindCSS Documentation - learn about TailwindCSS
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.