Get Started
Hi fellow hacker! Welcome to cyrux. Let's setup the codebase locally for development.
Setup local server
Run the following commands in your terminal one by one
- Clone the repo and install dependencies
git clone https://github.com/ayush-sharma-org/cyrux-template.git [YOUR_APP_NAME]
cd [YOUR_APP_NAME]
pnpm install
git remote remove origin- Setup convex dev environment
This will provision a new convex dev deployment and will create a .env.local in your project.
npx convex dev - Add .env variables to convex dashboard
Run the following commands to set env variables in your convex dashboard
We are not setting up social auth here, visit here to set it up.
npx convex env set SITE_URL http://localhost:3000
npx convex env set BETTER_AUTH_SECRET=$(openssl rand -base64 32)- All Done 🎉
Good work setting up your local server, run this command and open http://localhost:3000 in your browser to see your app running.
pnpm run dev