This AI-powered platform uses pre-created templates to generate websites effortlessly. By leveraging the Gemini API, it fills in the content with artificial intelligence based on the information provided by the user. The generated site can then be customized to meet specific needs. Check out the live version
- Multi-Step form
- AI content Generation
- User Registration
- Email Notifications.
- Edit interface
- Auth
-
Database Credentials:
- Create a
.env
file at the /server directory with the following format:DB_HOST=localhost DB_NAME=webuilder DB_USER=root DB_PASSWORD=your_password SMTP_HOST=smtp.example.com SMTP_AUTH=true [email protected] SMTP_PASSWORD=your_email_password SMTP_SECURE=ENCRYPTION_STARTTLS SMTP_PORT=587
- Replace
your_password
with your actual database password.
- Create a
-
Start the PHP Server:
- Navigate to the project root directory in your terminal.
- Run the command:
php -S localhost:8000
-
Database Setup:
- Create a database named
webuilder
. - Run the following SQL commands to create the necessary tables:
CREATE TABLE users ( id INT AUTO_INCREMENT PRIMARY KEY, email VARCHAR(100) NOT NULL UNIQUE, password VARCHAR(255) NOT NULL, first_name VARCHAR(100) NOT NULL, last_name VARCHAR(100) NOT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, active BOOLEAN DEFAULT TRUE ); CREATE TABLE services ( id INT AUTO_INCREMENT PRIMARY KEY, website_id INT, content TEXT NOT NULL, description TEXT NOT NULL, icon VARCHAR(255) NOT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, active BOOLEAN DEFAULT TRUE ); CREATE TABLE website_information ( id INT AUTO_INCREMENT PRIMARY KEY, user_id INT NOT NULL, business_name VARCHAR(100) NOT NULL, project_description TEXT NOT NULL, phone VARCHAR(20), email VARCHAR(100), address VARCHAR(255), country VARCHAR(100), instagram_url VARCHAR(255), google_maps_url VARCHAR(255), facebook_url VARCHAR(255), postal_code VARCHAR(20), logo_path VARCHAR(255), banner_path VARCHAR(255), primary_color VARCHAR(7), secondary_color VARCHAR(7), created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, active BOOLEAN DEFAULT TRUE, FOREIGN KEY (user_id) REFERENCES users(id) ); CREATE TABLE sections ( id INT AUTO_INCREMENT PRIMARY KEY, type VARCHAR(50) NOT NULL, content TEXT, website_id INT NOT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, active BOOLEAN DEFAULT TRUE, FOREIGN KEY (website_id) REFERENCES website_information(id) );
- Create a database named