cleaning up npm packages
This commit is contained in:
14
README.md
14
README.md
@@ -39,10 +39,11 @@ There are no API keys or external accounts to set up. The "Suggest fields" butto
|
||||
Needs Node 20+ and a PostgreSQL you can reach.
|
||||
|
||||
```bash
|
||||
cp .env.example .env # edit DATABASE_URL
|
||||
cp .env.example .env # edit DB_USER / DB_PASSWORD / DB_HOST etc.
|
||||
npm install
|
||||
psql "$DATABASE_URL" -f db/init.sql # create the schema once
|
||||
npm run dev # http://localhost:5173
|
||||
# create the schema once (use the same values you put in .env):
|
||||
psql -h "$DB_HOST" -U "$DB_USER" -d "$DB_NAME" -f db/init.sql
|
||||
npm run dev # http://localhost:5180
|
||||
```
|
||||
|
||||
Scripts: `npm run build` (production build) · `npm run preview` (serve the build) · `npm run start` (run the built server) · `npm run check` (type-check).
|
||||
@@ -53,7 +54,12 @@ All config is via environment variables — see [`.env.example`](./.env.example)
|
||||
|
||||
| Variable | Purpose |
|
||||
|---|---|
|
||||
| `DATABASE_URL` | Postgres connection string. Set automatically by docker-compose. |
|
||||
| `DB_HOST` | Database host (default `localhost`; `db` inside docker-compose). |
|
||||
| `DB_PORT` | Database port (default `5432`). |
|
||||
| `DB_USER` | Database username. |
|
||||
| `DB_PASSWORD` | Database password. |
|
||||
| `DB_NAME` | Database name. |
|
||||
| `DATABASE_URL` | Optional. A full connection string that overrides the `DB_*` values above if set. |
|
||||
| `PORT` | Server port (default 3000). |
|
||||
| `ORIGIN` | Public URL the app is served from; used to validate POST origins. |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user