{"pageProps":{"user":null,"pages":[{"id":8,"title":"Getting Started","slug":"getting-started","level":1,"parent_id":null},{"id":9,"title":"Getting Started","slug":"getting-started","level":2,"parent_id":3},{"id":2,"title":"Quick Start","slug":"quick-start","level":1,"parent_id":null},{"id":3,"title":"GUI Reference","slug":"gui-reference","level":1,"parent_id":null},{"id":4,"title":"API Reference","slug":"api-reference","level":1,"parent_id":null},{"id":10,"title":"Get","slug":"get","level":2,"parent_id":4},{"id":12,"title":"Database Reference","slug":"database-reference","level":1,"parent_id":null},{"id":11,"title":"Post","slug":"post","level":2,"parent_id":4},{"id":13,"title":"Data types","slug":"data-types","level":2,"parent_id":12},{"id":14,"title":"Querying Data","slug":"querying-data","level":2,"parent_id":12},{"id":15,"title":"Upload Media","slug":"upload-media","level":2,"parent_id":3}],"targetPage":{"title":"Quick Start","slug":"quick-start","description":"
Start saving and retrieving data now. Set up and start deploying in minutes.
","content":"To get started with datasquirel you need an account online. The datasquirel npm module will hit this account via out API integration using your API credentials. Without an account, you cannout query any data on our API. Follow these steps to create an account:
Create a free account here
Navigate to your Dashboard or Databases page. Click the \"Add Database\" button to add a new database.
On the next screen that appears, fill in the form and add a database image if you wish. Click on \"Create Database\" to add the new database
Creating a new database takes you to the database page. This page allows you to import a pre-existing database using an SQL export file, or create a new table inside the newly-formed database. More operations for your database can be found in the database dropdown on the top left, or the \"more\" dropdown on the top right.
Databases consists of Tables: each with fields(or columns) and entries(or rows). Select a database from your database list to access the single database pages. Click on \"Add Table\" and fill in the new table form.
On each table form you have access to the table fields(or column titles). Each field contains a few options:
After these fields are filled, click \"Add Field\". Add as much field as you need. These fields serve as column titles for your table.
After creating a table you now have access to the tables list.
Select the newly created Table and on the designated table page click on \"Add New Table Entry\"
Fill in the required fields and click on \"Add Entry\". Congrats, you have now created your first datasquirel data entry, you can now access this data from any platform using your api key.
to start fetching data from your datasquirel account, you need to go through 3 steps:
Your api key is your gateway to all your data. There are two sets of API keys available for use: Read Only API keys, and Full Access API keys. They function as their names sound: Read only API keys only read data, Full Access API keys can read, write, delete, update, and also add media to your media storage directory.
To create an API key, follow these steps:
After creating your API key, then comes the backend section.
npm install datasquirel
const datasquirel = require(\"datasquirel\");\n\ndatasquirel\n .get({\n db: \"test\",\n key: process.env.DATASQUIREL_READ_ONLY_KEY,\n query: \"SELECT title, slug, body FROM blog_posts\",\n })\n .then((response) => {\n console.log(response);\n });
Read our API Reference for more.
"}},"__N_SSG":true}