This is a Next.js TypeScript application designed as a digital learning platform for students, based on the provided mockup files. It features lesson content, a sidebar for navigation, and a learning assistant component.
- Node.js (Version specified in
.nvmrcif available, otherwise latest LTS recommended) - pnpm (Package manager)
-
Clone the repository (if applicable):
git clone <repository-url> cd <repository-directory>
-
Install dependencies: Make sure you have
pnpminstalled (npm install -g pnpm). Then run:pnpm install
-
Run the development server:
pnpm dev
This will start the application locally. Open http://localhost:3000 (or the specified port) in your browser to view it.
pnpm dev: Runs the app in development mode.pnpm build: Builds the app for production.pnpm start: Starts the production server (requirespnpm buildfirst).pnpm lint: Runs the linter.
/app: Contains the core application routes and pages (using Next.js App Router)./components: Contains reusable React components, including UI elements (/ui) and feature-specific components (/learning-assistant)./contexts: Holds React Context providers for global state management./data: Contains mock data used by the application./hooks: Stores custom React hooks./lib: Utility functions./public: Static assets like images and fonts./styles: Global CSS styles./types: TypeScript type definitions.