This is a Next.js project bootstrapped with create-next-app.
Environment Variables
To set up your environment variables:
- Rename the
.env.examplefile to.env - Update the variables in the
.envfile with your own values
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.
In the project directory, you can run:
Runs the development server using Turbopack. Open http://localhost:3000 with your browser to see the result.
Builds the application for production usage.
Starts a production server with the built application.
Runs ESLint to check for code quality and style issues.
Executes Jest tests for the application.
Generates TypeScript types from GraphQL schema using GraphQL Code Generator.
Each directory serves a specific purpose:
assets/: Contains static files like fonts and imagescomponents/: Houses reusable UI components, each in its own directory with testsfeatures/: Contains feature-based modules (like the lease calculator) with their components, types, and logicpages/: Next.js pages and routingservices/: API-related code, GraphQL queries, and external service integrationstypes/: Global TypeScript type definitions and generated GraphQL types
The project follows a feature-based architecture where related code is grouped by business domain (like the lease calculator) rather than technical concerns. This makes it easier to maintain and scale the application as new features are added.