https://github.com/haravetskyy/harbor-task
Pet application for task management
https://github.com/haravetskyy/harbor-task
nestjs nextjs prisma-orm reactjs shadcn task-list typescript
Last synced: about 1 month ago
JSON representation
Pet application for task management
- Host: GitHub
- URL: https://github.com/haravetskyy/harbor-task
- Owner: haravetskyy
- Created: 2024-12-23T23:29:13.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-03-10T20:37:17.000Z (about 2 months ago)
- Last Synced: 2025-03-10T21:31:50.940Z (about 2 months ago)
- Topics: nestjs, nextjs, prisma-orm, reactjs, shadcn, task-list, typescript
- Language: TypeScript
- Homepage:
- Size: 1.06 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Harbor Task
A full-stack project consisting of a **apps/frontend** (Vite + React), a **backend** (Nest.js), and a **PostgreSQL** database.
---
## **Getting Started**
### **Prerequisites**
Ensure you have the following installed:
- **Node.js** (v18 or later)
- **pnpm**
- **Docker** and **Docker Compose**---
### **1. Clone the Repository**
```bash
git clone https://github.com/haravetskyy/harbor-task.git
cd harbor-task
```---
### **2. Configure Environment Variables**
The project requires environment variables to function properly. To assist you, `.env.example` files are provided in the following directories:
- `apps/frontend/`
- `apps/backend/`
- `root/`These files serve as templates, listing all necessary variables. You need to copy them to their respective `.env` files and fill them with valid data specific to your setup.
---
### **3. Install Dependencies**
Install all required Node.js packages for both the apps/frontend and backend:
```bash
pnpm install
```---
### **4. Run All Essential Scripts**
You need to execute these scripts to ensure everything works correctly.
#### **4.1. Start the Development Database**
```bash
pnpm db:dev:up
```This script initializes and starts the development database.
#### **4.2. Apply Prisma Migrations**
```bash
pnpm prisma:dev:deploy
```This command applies the Prisma migrations to the database.
#### **4.3. Generate Prisma Client**
```bash
pnpm prisma:generate
```This script generates the Prisma client based on the Prisma schema.
#### **4.4. (Optional) Seed Data**
```bash
pnpm data:seed
```If you want to generate some initial data, run this command.
---
### **5. Start the Application**
```bash
pnpm start:dev
```Finally, you are good to go :)