Live project: https://subnet-credit.vercel.app/
A fast, modern React + TypeScript starter built with Vite, Tailwind CSS and shadcn-ui. This repository is scaffolded to work both with Lovable (the visual prompt-driven editor) and with a local development workflow using your preferred IDE.
- About
- Tech stack
- Getting started (quick)
- Development scripts
- Environment variables
- Editing workflows
- Deployment
- Project structure
- Troubleshooting
- Contributing
- License & support
This repository is a Lovable project template intended for rapid development of UI-first web apps. It includes:
- Vite for fast dev server and optimized builds
- TypeScript for type-safe development
- React for UI composition
- Tailwind CSS for utility-first styling
- shadcn-ui components for accessible, composable UI primitives
Use it as a starting point for dashboards, marketing sites, admin panels, or any React-based frontend.
- Node.js (LTS recommended)
- Vite
- React + TypeScript
- Tailwind CSS
- shadcn-ui
- Optional: GitHub Codespaces, Lovable visual editor
Prerequisites
- Node.js (16+ recommended; use nvm to manage versions: https://github.com/nvm-sh/nvm)
- Git
Steps
# 1. Clone the repo (use your Git URL)
git clone <YOUR_GIT_URL>
cd <YOUR_PROJECT_NAME>
# 2. Install dependencies
npm install
# 3. Start dev server (hot reload + instant preview)
npm run devOpen the URL printed in the terminal (usually http://localhost:5173) to view the app.
Common npm scripts included in this template:
- npm run dev — Start Vite dev server with HMR
- npm run build — Create a production build (output in dist/)
- npm run preview — Preview the production build locally (uses Vite preview)
- npm run lint — Run linters (if configured)
- npm run format — Auto-format code (if configured)
- npm test — Run tests (if tests are present)
Check package.json for the exact scripts available in this project.
If your app requires secrets or third-party keys, create a .env.local file at the repository root and list variables there. Example:
VITE_API_URL=https://api.example.com
VITE_MAP_KEY=pk.XXXXXXXXXXXXX
Note: Vite exposes env variables prefixed with VITE_ to the client bundle. Never commit private keys or secrets to git.
You can edit this project using any of the following methods:
-
Lovable (recommended for visual / prompt-driven edits)
- Visit the project page: https://lovable.dev/projects/15daf584-6d07-4cac-9279-6d05e63967cb
- Make changes through the Lovable UI; changes are committed automatically to this repo.
-
Local IDE (developer workflow)
- Clone the repo, edit files locally, run npm install and npm run dev.
- Commit and push branches as usual — Lovable will reflect pushed changes.
-
GitHub Web Editor
- Navigate to the file in the repo on GitHub and click the pencil icon to edit a file directly.
-
GitHub Codespaces
- Click Code → Codespaces → New codespace to open a full dev environment in the cloud.
Branching and PRs
- Use feature branches and open Pull Requests for changes you want reviewed or tracked.
- Follow your team's branching / commit message conventions.
Deploy with Lovable
- Open the Lovable project page and click Share → Publish to publish the site using Lovable's deployment.
Other options
- Vercel / Netlify / Cloudflare Pages all work well with Vite static builds.
- Build: npm run build
- Deploy the contents of the
dist/folder
Custom domain (Lovable)
- In Lovable: Project → Settings → Domains → Connect Domain
- See docs: https://docs.lovable.dev/features/custom-domain#custom-domain
A typical file layout for this template:
- src/
- main.tsx — App bootstrap
- App.tsx — Root component
- routes/ — Route components
- components/ — UI components
- styles/ — Tailwind or global styles
- public/ — Static assets
- index.html
- package.json
- tsconfig.json
- tailwind.config.cjs
- vite.config.ts
- .env.example — Example env vars
Adjust to your needs — this is a small, opinionated starter layout.
-
"npm run dev" not starting:
- Ensure Node.js version is supported (use nvm to switch).
- Delete node_modules and reinstall: rm -rf node_modules && npm install
-
Styling not updating:
- Make sure tailwind is configured and the correct content paths include your files.
- Restart dev server after changing tailwind.config.cjs.
-
Env vars not showing in the app:
- Vite only exposes variables that start with VITE_. Restart dev server after adding .env files.
If you run into problems, search open issues or create a new issue in this repository with reproduction steps and terminal output.
Contributions are welcome! A simple workflow:
- Fork or branch off the main repo.
- Make changes on a feature branch.
- Run linting/formatting and tests before committing.
- Open a PR with a clear description of the change and any migration steps.
Include screenshots or a short demo GIF for UI changes. If the change is large, open an issue first to discuss the approach.
This repository currently does not include a license file. Add a LICENSE (for example MIT) if you plan to publish or open-source this project.
For support:
- Use GitHub issues in this repo
- Or edit the project in Lovable and use its sharing/publishing features
Maintainers
- GitHub: Hillan007
Thanks for using this starter — happy coding!