Prerequisites
Before you begin, ensure you have:- Bun installed (v1.0 or higher)
- A Google OAuth application for authentication
- An Azure account with Cosmos DB and Blob Storage
- A Google Gemini API key
- (Optional) A Polar account for payments
- (Optional) A Mux account for video features
- (Optional) A Mixpanel account for analytics
Installation
1
Clone the repository
2
Install dependencies
3
Set up environment variables
Create a
.env.local file in the root directory with the following variables:4
Run the development server
Creating Your First Image
1
Sign in with Google
Navigate to the home page and click “Sign in” to authenticate with your Google account.
2
Create a new project
After signing in, you’ll be redirected to the Projects page. Click the ”+” button to create a new project.
3
Add an Upload Node
Right-click on the canvas and select “Upload” from the context menu. Upload an image from your computer.
4
Add a Generation Node
Right-click on the canvas again and select “Image Generator” from the Nodes section.
5
Connect the nodes
Click and drag from the output handle (right side) of the Upload node to the input handle (left side) of the Generation node.
6
Generate your image
In the Generation node, type a prompt describing how you want to transform the image (e.g., “Make this image look like a watercolor painting”). Press Enter to generate.