mirror of
https://github.com/yusufipk/RepoHub.git
synced 2026-09-11 10:36:07 +00:00
build: Standardize on pnpm for package management and add init:db script.
This commit is contained in:
@@ -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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -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": {
|
||||||
|
|||||||
Reference in New Issue
Block a user