This is a Next.js application built with TypeScript, Redux Toolkit, TipTap editor, and OpenAI integration. The project uses modern development tools and practices including Tailwind CSS for styling and React Hook Form for form management.
Before you begin, ensure you have the following installed:
- Node.js (Latest LTS version recommended)
- npm or yarn package manager
- Git
- Clone the repository:
git clone [<repository-url>](https://github.com/nabedkhan/multistep-job-application-form)
cd multistep-job-application-form
- Install dependencies:
npm install
# or
yarn install
- Set up environment variables:
Create a
.env
file in the root directory and add your OpenAI API key:
OPENAI_API_KEY=your_api_key_here
- Run the development server:
npm run dev
# or
yarn dev
The application will start in development mode with Turbopack. Open http://localhost:3000 to view it in your browser.
To use the AI prompting features, you'll need an OpenAI API key. Here's how to get one:
- Go to OpenAI's website
- Create an account or sign in
- Navigate to the API keys section
- Click "Create new secret key"
- Copy the generated key (make sure to save it as it won't be shown again)
- Add the key to your
.env
file as shown above
- Build the application:
npm run build
- Start the production server:
npm run start
The application will run on port 3000 by default.