Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/the-robin-hood/prisma-playground
https://github.com/the-robin-hood/prisma-playground
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/the-robin-hood/prisma-playground
- Owner: The-Robin-Hood
- License: mit
- Created: 2023-10-16T04:21:17.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-21T04:39:55.000Z (about 1 year ago)
- Last Synced: 2023-10-21T05:24:39.995Z (about 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 566 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Prisma Playground
## Overview
Prisma Playground is a web-based tool that allows you to execute Prisma commands directly in your browser. It provides a user-friendly interface to interact with your Prisma schema, execute queries, and see results in real-time.
## Getting Started
To set up the project, follow these steps:
1. Install dependencies:
```bash
bun install
```2. Place your `schema.prisma` file in the `prisma` folder.
3. Generate Prisma client:
```bash
bun prisma generate #replace the prisma.schema file or else it will inititate with example.db
```4. Build the project:
```bash
bun run build
```5. Start the application:
```bash
bun run start
```## Features
- **Interactive Interface:** Select tables and queries using dropdowns for a seamless experience.
- **Real-time Execution:** Execute queries directly from the browser, and receive real-time results.
- **Syntax Highlighting:** Leverage CodeMirror for syntax highlighting and error checking when entering query conditions.
- **Clipboard Integration:** Easily copy query results or errors to the clipboard with a click.
- **Clear Output:** Clear the output area to keep the interface tidy.
- **Error Handling:** Receive error notifications in case of query execution errors.
## Usage
1. Select a table and a query from the dropdown menus.
2. Enter query conditions in the provided CodeMirror editor.
3. Click the "Execute" button to run the query.
4. View the results, copy them to the clipboard, or clear the output as needed.## Screenshots
![screenshots](./public/screenshot.png)## Contributing
Feel free to contribute to the project by submitting bug reports, feature requests, or pull requests. Your feedback and contributions are highly appreciated.
Crafted with ❤️ by Ansari. [Say Hi! 👋🏻](https://twitter.com/am5orry)
## License
This project is licensed under the [MIT License](LICENSE).