Skip to content

This is an online coding compiler. To unlock support for additional programming languages, please upgrade to the Pro version.

Notifications You must be signed in to change notification settings

ManvendraPSdev/DevStudio

Repository files navigation

DevStudio - Modern Development Environment

This is a modern web application built with cutting-edge technologies for a seamless development experience.

Technology Stack

  • Next.js 15.1.2 - React framework for production
  • React 19 - UI library
  • TypeScript - Type-safe JavaScript
  • Clerk - Authentication and user management
  • Convex - Backend database and real-time synchronization
  • TailwindCSS - Utility-first CSS framework
  • ESLint - Code linting
  • Turbopack - Next.js bundler (experimental)

Prerequisites

Before you begin, ensure you have installed:

  • Node.js (Latest LTS version recommended)
  • npm, yarn, or pnpm

Installation

  1. Clone the repository:
git clone <repository-url>
cd devstudio
  1. Install dependencies:
npm install
# or
yarn install
# or
pnpm install
  1. Set up TailwindCSS:
  • TailwindCSS is already configured in the project
  • Check tailwind.config.ts for customizations
  • Styles are automatically processed during development
  1. Set up Clerk Authentication:
npm install @clerk/nextjs
# or
yarn add @clerk/nextjs
  • Sign up at Clerk.dev
  • Create a new application in Clerk dashboard
  • Create a .env.local file and add your Clerk keys:
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your_publishable_key
CLERK_SECRET_KEY=your_secret_key
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/
  1. Set up Convex Backend:
npm install convex
# or
yarn add convex
  • Install Convex CLI:
npm install -g convex
  • Initialize Convex:
npx convex dev
  • Add your Convex deployment URL to .env.local:
NEXT_PUBLIC_CONVEX_URL=your_convex_url

Development

Start the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

The application will be available at http://localhost:3000.

Project Structure

  • /app - Next.js application routes and pages
  • /convex - Convex backend functions and schema
  • /components - Reusable React components
  • /public - Static assets
  • /styles - Global styles and TailwindCSS configuration

Available Scripts

  • npm run dev - Start development server with Turbopack
  • npm run build - Build for production
  • npm start - Start production server
  • npm run lint - Run ESLint

Deployment

Frontend (Next.js)

Deploy on Vercel:

  1. Push your code to GitHub
  2. Import project to Vercel
  3. Add environment variables
  4. Deploy!

Backend (Convex)

Your Convex backend will automatically deploy when you push your changes:

npx convex deploy

Development Best Practices

  1. TypeScript
  • Use strict type checking
  • Utilize interfaces and types for all components and functions
  • Follow the project's existing type definitions
  1. Styling
  • Use TailwindCSS utility classes
  • Follow the project's color scheme and design system
  • Keep components responsive and mobile-friendly
  1. State Management
  • Use Convex for global state management
  • Utilize React hooks for local state
  • Implement proper loading and error states
  1. Authentication
  • All protected routes should use Clerk middleware
  • Implement proper role-based access control
  • Follow security best practices

Documentation & Resources

Core Technologies

Authentication & Backend

Development Tools

Troubleshooting

Common issues and solutions:

  1. Environment Variables
  • Ensure all required environment variables are set in .env.local
  • Restart the development server after updating environment variables
  1. Build Issues
  • Clear .next folder and node_modules
  • Run npm clean-install or yarn install --force
  1. Convex Issues
  • Ensure Convex CLI is properly installed
  • Check Convex dashboard for deployment status
  • Verify Convex URL in environment variables
  1. Authentication Issues
  • Verify Clerk credentials in environment variables
  • Check Clerk dashboard for application status
  • Ensure proper redirect URLs are configured

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a new Pull Request

Please ensure your PR follows our contribution guidelines and includes appropriate tests.

Support

For support and questions:

  • Create an issue in the repository
  • Check existing documentation
  • Contact the development team

About

This is an online coding compiler. To unlock support for additional programming languages, please upgrade to the Pro version.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •