Skip to content

Talent-Index/Subnet-Lend

Repository files navigation

Loan Lender

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.


Table of contents


About

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.


Tech stack

  • Node.js (LTS recommended)
  • Vite
  • React + TypeScript
  • Tailwind CSS
  • shadcn-ui
  • Optional: GitHub Codespaces, Lovable visual editor

Getting started (quick)

Prerequisites

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 dev

Open the URL printed in the terminal (usually http://localhost:5173) to view the app.


Development scripts

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.


Environment variables

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.


Editing workflows

You can edit this project using any of the following methods:

  1. Lovable (recommended for visual / prompt-driven edits)

  2. 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.
  3. GitHub Web Editor

    • Navigate to the file in the repo on GitHub and click the pencil icon to edit a file directly.
  4. 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.

Deployment

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)


Project structure (typical)

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.


Troubleshooting

  • "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.


Contributing

Contributions are welcome! A simple workflow:

  1. Fork or branch off the main repo.
  2. Make changes on a feature branch.
  3. Run linting/formatting and tests before committing.
  4. 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.


License & support

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!

Releases

No releases published

Packages

 
 
 

Contributors