Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/creazy231/strapi-plugin-raw-query
Raw Query allows you to send raw query strings to the database.
https://github.com/creazy231/strapi-plugin-raw-query
Last synced: 9 days ago
JSON representation
Raw Query allows you to send raw query strings to the database.
- Host: GitHub
- URL: https://github.com/creazy231/strapi-plugin-raw-query
- Owner: creazy231
- Created: 2021-05-28T13:33:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-11T12:39:48.000Z (7 months ago)
- Last Synced: 2024-04-24T09:10:58.515Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 234 KB
- Stars: 22
- Watchers: 1
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Strapi Plugin: Raw Query
Raw Query allows you to send raw query strings to the database within
Strapi CMS
backend. That's it 🤷🏻♂️
## ⏳ Installation
Install Strapi with this **Quickstart** command to create a Strapi project instantly:- Use **yarn** to initialize a new Strapi project (recommended). [How to install yarn](https://yarnpkg.com/lang/en/docs/install/)
```bash
# with yarn
yarn create strapi-app my-project --quickstart# with npm/npx
npx create-strapi-app my-project --quickstart
```_This command generates a brand new project with the default features (authentication, permissions, content management, content type builder & file upload). The **Quickstart** command installs Strapi using a **SQLite** database which is used for prototyping in development._
---
- Add the `strapi-plugin-raw-query` plugin
```bash
yarn add strapi-plugin-raw-query@latest# or
npm i strapi-plugin-raw-query@latest
```- Enable the plugin
```js
// config/plugins.jsmodule.exports = {
'raw-query': {
enabled: true,
},
// ...
}```
- After successful installation you've to build a fresh package of the Strapi backend:
```bash
yarn build && yarn develop# or
npm run build && npm run develop
```- or just run Strapi in the development mode with `--watch-admin` option:
```bash
yarn develop --watch-admin#or
npm run develop --watch-admin
```The **Raw Query** plugin should appear in the Plugins section of Strapi sidebar after you run app again.
# 🏚 Strapi v3 Support
For Strapi v3, you can install the plugin using the following command and continue with the installation:
```bash
yarn add [email protected]# or
npm i [email protected]
```## 🖐 Requirements
**Supported Strapi versions**:
- Strapi: >= 4.x.x
**Supported Node / NPM versions**:
- Node: >= 12.x.x <= 20.x.x
- NPM: >= 6.0.0_We recommend always using the latest version of Strapi to start your new projects_.
## 🤝 Contributing
Feel free to fork and make a Pull Request to this plugin project. All the input is warmly welcome!
## ⭐️ Show your support
Give a star if this project helped you.
## 🔗 Links
- [NPM package](https://www.npmjs.com/package/strapi-plugin-raw-query)
- [GitHub repository](https://github.com/creazy231/strapi-plugin-raw-query)## 📝 License
MIT License Copyright (c) 2024 creazy231
[![ForTheBadge built-with-love](http://ForTheBadge.com/images/badges/built-with-love.svg)](https://GitHub.com/creazy231/)