should work on both localhost and outside.

This commit is contained in:
pulipakaa24
2026-03-19 13:48:19 -05:00
parent 6026e4dda6
commit 8c2f8fa7b1
11 changed files with 157 additions and 61 deletions

22
readme.md Normal file
View File

@@ -0,0 +1,22 @@
# LabWise
Lab inventory management service
## How to run on localhost
```bash
# 1
npm install
# 2
psql CREATE USER labwise WITH PASSWORD 'labwise_dev_pw';
psql CREATE DATABASE labwise_db OWNER labwise;
psql GRANT ALL PRIVILEGES ON DATABASE labwise_db TO labwise;
psql postgresql://labwise:labwise_dev_pw@localhost:5432/labwise_db -f server/src/db/schema.sql
# 3
cd server && npm install && npm run db:migrate
cd ..
# 4
npm run dev
```