Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bitxon/ts-node-express-drizzle
Example: TypeScript | Node.js | Express.js | Drizzle ORM
https://github.com/bitxon/ts-node-express-drizzle
drizzle-kit drizzle-orm expressjs nodejs postgres typescript
Last synced: 2 days ago
JSON representation
Example: TypeScript | Node.js | Express.js | Drizzle ORM
- Host: GitHub
- URL: https://github.com/bitxon/ts-node-express-drizzle
- Owner: bitxon
- Created: 2024-02-28T15:13:54.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-08T10:30:13.000Z (10 months ago)
- Last Synced: 2024-11-08T05:04:35.168Z (about 2 months ago)
- Topics: drizzle-kit, drizzle-orm, expressjs, nodejs, postgres, typescript
- Language: TypeScript
- Homepage:
- Size: 101 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TypeScript Node.js | Express | Drizzle ORM
## Run Application
Run in dev mode (Docker + Drizzle + Nodemon)
```shell
npm run dev
```Compile and Run in prod mode
```shell
npm run docker:up
```
```shell
npm run build && npm run start
```## Test application
Create Account
```shell
curl --location 'http://localhost:8080/accounts' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "[email protected]",
"firstName": "Mike",
"lastName": "Brown",
"currency": "USD",
"balance": 100
}'
```Get All Accounts
```shell
curl --location 'http://localhost:8080/accounts'
```Get Account By Id
```shell
curl --location 'http://localhost:8080/accounts/1'
```Transfer Money
```shell
curl --location 'http://localhost:8080/accounts/transfer' \
--header 'Content-Type: application/json' \
--data-raw '{
"senderId": 1,
"recipientId": 2,
"amount": 100
}'
```