This tutorial shows how to set up a new HTML, CSS, and JavaScript project in Replit and get it running in the built-in preview.
Notes
- You need a Replit account to get started. Sign up at replit.com if you don't have one yet.
- Replit is phasing out Developer Frameworks. If replit.com/developer-frameworks is unavailable, go to your dashboard, click + Create Something New, and describe your project in the prompt - for example, "Create a Python project with Flask installed." The Agent will set up the environment automatically.
- Sign in to your account at replit.com and go to replit.com/developer-frameworks. Choose HTML, CSS, JS (Static) or from the list.
- Click Remix. When the Privacy option prompts, choose the default (Public) and click Use Framework.
- Wait for Replit to set up the environment, then click the Open Files icon in the top-right corner and click File tree.
- Review the generated project structure. Replit creates the following files by default:
- index.html- handles the page structure
- style.css - controls the design and layout
- script.js - adds interactivity
- Open each file in the editor and start building - for example, a dashboard UI for a SaaS client report with styled components and interactive buttons.
- Click the Run button at the top of the workspace. Replit launches the page in the Preview panel on the right so you can see your changes live.
- To fix bugs, ask the Agent to "check my app for bugs," and it will review your code and suggest fixes.
.gif)
