https://github.com/kuc-arc-f/express_api_6_pub
express + postgres , typescript sample
https://github.com/kuc-arc-f/express_api_6_pub
express postgresql
Last synced: 3 months ago
JSON representation
express + postgres , typescript sample
- Host: GitHub
- URL: https://github.com/kuc-arc-f/express_api_6_pub
- Owner: kuc-arc-f
- Created: 2024-06-09T05:53:28.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-09T07:49:20.000Z (about 2 years ago)
- Last Synced: 2024-12-27T20:19:30.295Z (over 1 year ago)
- Topics: express, postgresql
- Language: TypeScript
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# express_api_6_pub
Version: 0.9.1
Author : Kouji Nakashima / kuc-arc-f.com
date : 2024/06/09
update : 2024/06/09
***
express + postgres , typescript sample
***
### setup
* .env
```
POSTGRES_DATABASE="postgres"
POSTGRES_USER=""
POSTGRES_PASSWORD=""
POSTGRES_HOST=""
POSTGRES_PORT=6543
```
***
* table: Todo
```
CREATE TABLE public."Todo" (
id integer NOT NULL,
"createdAt" timestamp(3) without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
"updatedAt" timestamp(3) without time zone NOT NULL,
title character varying(255) NOT NULL,
content text,
complete integer,
"userId" text
);
```
***
### Build
```
# start
yarn build
# dev-start
yarn dev
```
***
### blog
***