"Zap" is a revolutionary minimal site builder that brings your development environment directly into the browser! 🚀 Craft beautiful websites with an integrated code editor, live preview, and AI assistance, all without any local setup. ✨
- In-Browser Development Environment: 🖥️ Spin up full coding projects directly in your browser using cutting-edge WebContainer technology – no local dependencies or installations required!
- Intuitive Code Editor & Project Management: ✍️ Edit, organize, and manage your files within a powerful, integrated editor. Start new projects or seamlessly resume existing ones, with your progress always saved.
- Secure User Authentication: 🔐 Log in effortlessly with Google OAuth. Manage your sessions and access personalized project spaces.
- AI-Assisted Development: 🤖 Boost your productivity with intelligent AI assistance. Generate code, get suggestions, and interact with your project through a built-in chat interface.
- Cloud Asset Management: ☁️ Easily upload and manage your site's images and media files with integrated Cloudinary support.
- Live Preview Capability: 👀 See your changes instantly with a real-time live preview of your website as you code.
- Next.js (App Router)
- NextAuth.js (Google OAuth)
- WebContainer (for in-browser sandboxing)
- Cloudinary (Asset Management)
- React
- Tailwind CSS
- react-hot-toast (Notifications)
Follow these steps to get "Zap" up and running on your local machine for development and testing purposes.
-
Clone the repository:
git clone https://github.com/your-username/Zap.git cd Zap -
Install dependencies:
npm install # or yarn install # or pnpm install
-
Configure Environment Variables: Create a
.env.localfile in the root of your project. You will need to define the following environment variables (refer to the provided.env.examplefor structure and guidance):NEXTAUTH_SECRETGOOGLE_CLIENT_IDGOOGLE_CLIENT_SECRETCLOUDINARY_CLOUD_NAMECLOUDINARY_API_KEYCLOUDINARY_API_SECRET
Obtain your Google OAuth credentials from the Google Cloud Console and your Cloudinary credentials from your Cloudinary dashboard.
NEXTAUTH_SECRETcan be a randomly generated string. -
Run the development server:
npm run dev # or yarn dev # or pnpm dev
Open http://localhost:3000 in your browser to see the application.