Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devhoangkien/bun-server-template
an open source using bun graphql prisma
https://github.com/devhoangkien/bun-server-template
autogen bun bunjs graphql graphql-yoga nodejs prisma typescript
Last synced: 22 days ago
JSON representation
an open source using bun graphql prisma
- Host: GitHub
- URL: https://github.com/devhoangkien/bun-server-template
- Owner: devhoangkien
- Created: 2023-10-09T15:58:31.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-01T17:27:01.000Z (about 1 year ago)
- Last Synced: 2024-10-01T03:42:16.891Z (about 1 month ago)
- Topics: autogen, bun, bunjs, graphql, graphql-yoga, nodejs, prisma, typescript
- Language: TypeScript
- Homepage:
- Size: 62.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Server template with BUN - Graphql and Rest API
## Information
- node: >16
- bun: 1.0.4
- prisma
- graphql-yoga
- @graphql-yoga/plugin-sofa## Clone source code:
```bash
git clone https://github.com/devhoangkien/bun-server-template.git
```## To install dependencies:
```bash
bun install
```## To run:
```bash
# docker run
docker compose up
# install package
bun install# migration
bun db:init # init database, migration and seed data
bun db:clean # clean data of database
bun seed # run seed data# start app
bun dev# build
bun build# start build
bun start```
This project was created using `bun init` in bun v1.0.4. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.