Merge pull request #8171 from erondpowell/directus-and-supabase-update

Directus and Supabase Update
This commit is contained in:
Copple authored and GitHub committed 2022-08-10 12:24:12 +02:00
commit 4cab63fa82
1 file changed
+8 -10
+8 -10
View File
@@ -10,11 +10,11 @@ In this guide, we will demonstrate how to create a new Supabase project, install
![Supabase App](/img/guides/integrations/directus/supabase-20220608A.webp)
Supabase is an open-source Firebase alternative that provides a PostgreSQL database, storage, authentication, and a dynamic REST API based on your schema. While it is possible to self-host Supabase on your own infrastructure, this article will focus on Supabase Cloud’s Free tier, which is the fastest and easiest way to get started.
[Supabase](​​https://supabase.com/) is an open-source Firebase alternative that provides a PostgreSQL database, storage, authentication, and a dynamic REST API based on your schema. While it is possible to self-host Supabase on your own infrastructure, this article will focus on Supabase Cloud’s Free tier, which is the fastest and easiest way to get started.
![Directus App](/img/guides/integrations/directus/directus-20220608A.webp)
Directus is an open-source data platform that layers on top of any SQL database, providing a powerful suite of tools. The Directus Engine provides dynamic REST and GraphQL APIs based on your schema, hooks and automation, authentication and access control, and file transformations. Directus Studio enables engineers and non-technical users alike to browse, manage, and visualize database content through a no-code app.
[Directus](https://directus.io/) is an open-source data platform that layers on top of any SQL database, providing a powerful suite of tools. The Directus Engine provides dynamic REST and GraphQL APIs based on your schema, hooks and automation, authentication and access control, and file transformations. Directus Studio enables engineers and non-technical users alike to browse, manage, and visualize database content through a no-code app.
---
@@ -28,7 +28,7 @@ The ability to generate *powerful* APIs dynamically to connect data
User management and fine-grained access control
Digital asset storage and management.
More importantly, Directus and Supabase share a common vision for your data, making them quite symbiotic. Both solutions are completely open-source, with self hosted and cloud deployment options available. They are unopinionated in their approach, with vendor-agnostic data storage, and they both focus on providing a polished developer experience along with comprehensive documentation.
More importantly, Directus and Supabase share a common vision for your data, making them quite symbiotic. Both solutions are completely open-source, with self-hosted and cloud deployment options available. They are unopinionated in their approach, with vendor-agnostic data storage, and they both focus on providing a polished developer experience along with comprehensive documentation.
By linking the Supabase database with your Directus Project, *you get a superset of data tools.* You'll benefit from Supabase's Postgres database and its *dev-centric* admin app with the raw power to run SQL queries, ***as well as*** the Directus no-code app, which enables intuitive permissions-based data access for the whole team.
@@ -38,7 +38,7 @@ Let’s dive into how we actually set up and link these two platforms to create
As mentioned, while you can [deploy Supabase locally](https://supabase.com/docs/guides/local-development). For the purpose of this guide, we’ll use Supabase Cloud:
1. Create a Supabase account by signing in with GitHub.
1. Create a **Supabase** account by signing in with GitHub.
2. Give your organization a name (this can be changed later).
3. Click **New Project** and select your organization.
4. Follow the prompts, setting a project Name, Database Password, Region, and Pricing Plan, then click **Create New Project**.
@@ -93,7 +93,7 @@ Once this is complete, you should see details about your new project:
```bash
Your project has been created at <file-path>/example-project.
The configuration can be found at <file-path>/example-project/.env
The configuration can be found in <file-path>/example-project/.env
```
5. Lastly, navigate to your new project folder (in this case `example-project`) and start the platform:
@@ -102,6 +102,7 @@ The configuration can be found at <file-path>/example-project/.env
cd example-project
npx directus start
```
**Please note:** To prevent public accessibility when using the supabase-js library,turn on row level security (RLS) on all these tables inside of the Supabase Dashboard. By default when RLS is turned on these tables cannot be read from or written to with the supabase-js library.
That’s it! Your project is now up and running locally. You can access the Directus Studio in the browser via the URL displayed, and log in with the Directus admin credentials you entered above:
@@ -123,8 +124,5 @@ Below are some additional resources to dive in and start exploring these two pla
- Check out the source code on the official [Directus GitHub Repo](https://github.com/directus/directus).
**Supabase**
- Checkout the [Supabase Crashcourse](https://supabase.com/docs/guides/examples).
- See the [Supabase guides](https://supabase.com/docs/guides/examples).
- Join the Supabase community on [Discord](https://discord.supabase.com/).
- Checkout the source code on the official [Supabase GitHub Repo](https://github.com/supabase/supabase).
- Explore the [Supabase documentation](https://supabase.com/docs)
- Join the Supabase community on [Discord](https://discord.supabase.com/)