Application for FocusPlan website.
- Framework: React with Next.js
- Language: TypeScript
- Styling: Tailwind CSS and shadcn/ui
- Icons: lucide-react
The frontend requires an environment variable to know the backend API URL.
- Local development: Create a
.env.localfile based on.env.local.example:
cp .env.local.example .env.localFill in the backend URL for local development:
NEXT_PUBLIC_API_URL=http://localhost:3001Production: The .env file should contain the URL of the deployed backend:
NEXT_PUBLIC_API_URL=https://api-focusplan.onrender.comNote:
.env.local is used for development and does not affect production.
.env is used only in production builds.
Running the application (Development)
- Install the dependencies
pnpm install
- Start the development server
pnpm run dev
- Open your browser and navigate to http://localhost:3000
To create a production version of your app:
pnpm run build
You can preview the production build with
pnpm startAdditional Notes
Make sure your backend is running locally (http://localhost:3001) when using .env.local.
To switch to the deployed backend, update .env.local or use the .env file for production builds.