build: Standardize on pnpm for package management and add init:db script.

This commit is contained in:
Yusuf İpek
2025-11-22 16:14:17 +03:00
parent 00f3ce4706
commit 1851ce3f3f
2 changed files with 8 additions and 7 deletions
+8 -6
View File
@@ -29,7 +29,7 @@ RepoHub provides a unified interface for package discovery and installation acro
### Prerequisites ### Prerequisites
- Node.js 18+ - Node.js 18+
- npm / pnpm / yarn - pnpm
- Docker (optional, for database) - Docker (optional, for database)
### Installation ### Installation
@@ -42,8 +42,6 @@ RepoHub provides a unified interface for package discovery and installation acro
2. **Install dependencies:** 2. **Install dependencies:**
```bash ```bash
npm install
# or
pnpm install pnpm install
``` ```
@@ -53,10 +51,14 @@ RepoHub provides a unified interface for package discovery and installation acro
cp .env.example .env cp .env.example .env
``` ```
4. **Run the development server:** 4. **Initialize the Database:**
Run the initialization script to set up the database schema and apply migrations.
```bash
pnpm init:db
```
5. **Run the development server:**
```bash ```bash
npm run dev
# or
pnpm dev pnpm dev
``` ```
-1
View File
@@ -9,7 +9,6 @@
"lint": "next lint", "lint": "next lint",
"type-check": "tsc --noEmit", "type-check": "tsc --noEmit",
"test:db": "node scripts/test-db.js", "test:db": "node scripts/test-db.js",
"init:backend": "chmod +x scripts/init-backend.sh && ./scripts/init-backend.sh",
"init:db": "node scripts/init-db.js" "init:db": "node scripts/init-db.js"
}, },
"dependencies": { "dependencies": {