Get your HubStack project up and running in minutes with this step-by-step guide.
Follow these steps to set up your HubStack project and start building your application.
Before you begin, ensure you have:
Open your terminal and run the following commands:
git clone https://github.com/your-username/hubstack.git
cd hubstack
Install all required packages using pnpm:
pnpm install
Create a .env
file in the root directory with these variables:
# Database
DATABASE_URL="postgresql://neondb_owner:npg_rb9JB0lKuMCO@ep-cold-voice-a58rzvsm-pooler.us-east-2.aws.neon.tech/neondb?sslmode=require"
# Auth
NEXTAUTH_SECRET="3cc9d3166430d0605de2ede088934d4e72085ed6"
NEXTAUTH_URL="http://localhost:3000"
NEXT_PUBLIC_BASE_URL="http://localhost:3000"
# GitHub Auth
GITHUB_CLIENT_ID="your-github-client-id"
GITHUB_SECRET="your-github-secret"
# Google Auth
GOOGLE_CLIENT_ID="your-google-client-id"
GOOGLE_CLIENT_SECRET="your-google-client-secret"
# Email
RESEND_API_KEY="your-resend-api-key"
# Upload Thing
UPLOADTHING_TOKEN='your-uploadthing-token'
Initialize your database with these commands:
# Generate Prisma Client
pnpm prisma generate
# Run migrations
pnpm prisma migrate dev
# Seed the database (optional)
pnpm prisma db seed
http://localhost:3000
http://localhost:3000/api/auth/callback/github
.env
filehttp://localhost:3000/api/auth/callback/google
.env
fileLaunch your development server:
pnpm dev
Visit http://localhost:3000
to see your application running.
Secure your Credentials:
Make sure to add your .env
file to .gitignore
to keep your credentials
secure.
After completing the setup:
http://localhost:3000
Join Group:
If you encounter any issues, check our troubleshooting guide or join our Whatsap community for support.
Now that your project is running, you can: