This project is a Next.js application for analyzing financial indices.
src/: Contains the Next.js application source code.Historical_Close/: Contains the CSV data files.
First, install dependencies:
npm installThen, run the development server:
npm run devOpen http://localhost:3000 with your browser to see the result.
-
Push to GitHub: Ensure your latest code is pushed to your GitHub repository.
-
Connect to Netlify:
- Log in to Netlify.
- Click "Add new site" -> "Import an existing project".
- Select GitHub and choose your repository.
-
Configure Build Settings: Netlify should detect the
netlify.tomlfile automatically:- Build command:
npm run build - Publish directory:
.next
- Build command:
-
Data Access: The application reads data from the
Historical_Closedirectory. Thenetlify.tomlis configured to include these files in the serverless functions, but for static generation, ensure the data is accessible.