should work on both localhost and outside.
This commit is contained in:
22
readme.md
Normal file
22
readme.md
Normal 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
|
||||
```
|
||||
Reference in New Issue
Block a user