Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattn/go-prisma-example
https://github.com/mattn/go-prisma-example
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mattn/go-prisma-example
- Owner: mattn
- Created: 2021-03-14T18:21:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-22T09:19:23.000Z (5 months ago)
- Last Synced: 2024-10-03T12:34:35.170Z (about 1 month ago)
- Language: Go
- Homepage:
- Size: 26.4 KB
- Stars: 39
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-prisma-example
Example Go app using [prisma](https://www.prisma.io/), [lit-html](https://lit-html.polymer-project.org/), and [ky](https://github.com/sindresorhus/ky).
## Usage
First of all, install PostgreSQL.
Then try following commands.```console
$ go generate
$ go build
$ echo 'DATABASE_URL=postgresql://yourname:yourname@localhost:5432/postgres' > .env
$ npx prisma db push
$ ./go-prisma-example
```Then you can use [TODO app](http://localhost:8989)! :tada:
## Reference
* [Blog post(ja)](https://zenn.dev/mattn/articles/1c4eb193d81a3a)
## License
MIT
assets/app.js is based on @ryohey's [lit-html-todo](https://github.com/ryohey/lit-html-todo)
## Author
Yasuhiro Matsumoto (a.k.a. mattn)