Getting Started
Installation
How to install and set up UNuxt
Get UNuxt running locally in a few steps.
Prerequisites
- Node.js 20+
- pnpm 9+
- Docker (for the database)
Clone the repository
git clone https://github.com/leighayanid/unuxt.git
cd unuxt
Install dependencies
pnpm install
npm install
yarn install
bun install
Configure environment variables
Copy the example environment file and fill in your values:
cp .env.example .env
Key variables to configure:
| Variable | Description |
|---|---|
DATABASE_URL | PostgreSQL connection string |
BETTER_AUTH_SECRET | Auth secret (min 32 characters) |
GOOGLE_CLIENT_ID | Google OAuth client ID |
GOOGLE_CLIENT_SECRET | Google OAuth client secret |
GITHUB_CLIENT_ID | GitHub OAuth client ID |
GITHUB_CLIENT_SECRET | GitHub OAuth client secret |
CLOUDINARY_CLOUD_NAME | Cloudinary cloud name |
CLOUDINARY_API_KEY | Cloudinary API key |
CLOUDINARY_API_SECRET | Cloudinary API secret |
Start the database
Start PostgreSQL using Docker:
docker-compose -f docker-compose.dev.yml up -d
Run database migrations
Push the schema to your database:
pnpm db:push
Start the development server
pnpm dev
Visit http://localhost:3000 to see your application.
Verify installation
You should see the UNuxt landing page. Try these to verify everything works:
- Navigate to
/auth/registerto create an account - Check the login flow at
/auth/login - Open Drizzle Studio with
pnpm db:studio