Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keivan-sf/elysiajs-surrealdb
https://github.com/keivan-sf/elysiajs-surrealdb
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/keivan-sf/elysiajs-surrealdb
- Owner: Keivan-sf
- Created: 2023-11-03T06:52:00.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-04T08:59:54.000Z (about 1 year ago)
- Last Synced: 2024-10-14T08:35:41.901Z (3 months ago)
- Language: TypeScript
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Elysiajs + Surrealdb sample
This is just me learning a fresh stack
To install dependencies:
```bash
bun install
```Setup an `.env` like below
```
SURREAL_USER=
SURREAL_PASS=
# uri should have ws protocol, e.g: ws://0.0.0.0:8080
SURREAL_URI=
PORT=
```Setup your database:
```bash
bun setup:db
```To run:
```bash
bun start
```You may now use `/book` with **CREATE** along side `/book/:hash` with **GET**,**DELETE**,**PATCH**