CodeCraft is an advanced live code editor tailored for web developers to write, test, and manage HTML, CSS, and JavaScript. It also features user management and an admin section powered by a PHP backend, making it a complete solution for coding and user profile management.
- Write and test HTML, CSS, and JavaScript code seamlessly.
- Real-time preview to see live results as you write code.
- Manage user profiles with a secure login and registration system.
- The admin section allows administrators to view and manage user feedback and queries.
- Admins can log in to manage feedback, user queries, and user accounts.
- View user data, queries, and feedback submitted via the application.
- Multiple editor themes to customize your coding experience.
- Includes dark mode for comfortable coding.
- Real-time preview feature to reflect changes instantly.
- See your HTML, CSS, and JavaScript code come to life as you type.
- Download your HTML, CSS, and JavaScript code directly.
- Save your files with ease for future reference.
- Commonly used snippets of HTML, CSS, and JavaScript are available.
- Speed up your workflow with reusable code blocks.
- HTML, CSS, JavaScript
- PHP
- MySQL (Database to manage user profiles and admin data)
- XAMPP (PHP, MySQL, Apache)
- CodeMirror (For live code editing)
- Bootstrap (For UI design)
- XAMPP: Make sure you have XAMPP installed to run the PHP server and MySQL database. Download it from here.
-
Clone the repository:
git clone https://github.com/YourUsername/CodeCraft.git
-
Start XAMPP:
- Open XAMPP and start Apache and MySQL modules.
-
Database Setup:
- Open phpMyAdmin (
http://localhost/phpmyadmin) and create a database namedusers. - Import the provided SQL file (
database.sql) to create the necessary tables (admininfo,feedback,userqueries,users).
- Open phpMyAdmin (
-
Configure the Project:
- Place the project folder in the
htdocsdirectory of XAMPP. - Open your browser and navigate to
http://localhost/CodeCraft.
- Place the project folder in the
-
User & Admin Login:
- You can now register new users or log in as an admin using the credentials provided in the SQL dump.
The MySQL database includes the following tables:
- admininfo: Stores admin login details.
- users: Maintains user profiles, including username, email, password, and profile picture.
- feedback: Collects user feedback with responses from the admin.
- userqueries: Stores user queries and responses.
- Write your HTML, CSS, or JavaScript code in the editor and use the live preview to view your changes in real-time.
- Use the admin panel to manage feedback and queries from users.
- Download your code or snippets as files for future use.
We welcome contributions! Follow these steps to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature-name). - Commit your changes (
git commit -m 'Add new feature'). - Push to the branch (
git push origin feature-name). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.
This version covers the backend, XAMPP setup, and user/admin features. Let me know if you'd like further adjustments!