Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kearfy/demo-nextjs-surrealdb
Basic NextJS app that showcases how to use surrealdb
https://github.com/kearfy/demo-nextjs-surrealdb
nextjs react-query surreal surrealdb surrealql tailwind tailwindcss
Last synced: about 2 months ago
JSON representation
Basic NextJS app that showcases how to use surrealdb
- Host: GitHub
- URL: https://github.com/kearfy/demo-nextjs-surrealdb
- Owner: kearfy
- License: mit
- Created: 2023-01-10T22:01:37.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-07T20:23:24.000Z (over 1 year ago)
- Last Synced: 2024-10-14T20:34:02.369Z (2 months ago)
- Topics: nextjs, react-query, surreal, surrealdb, surrealql, tailwind, tailwindcss
- Language: TypeScript
- Homepage: https://demo-blog.devrie.sh
- Size: 568 KB
- Stars: 29
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-surreal - Nextjs + surrealdb demo - Basic blog that serves as a demo / template for your nextjs + surrealdb project. (Projects)
README
# Basic NextJS + SurrealDB demo
This app showcases how you can use nextjs in combination with surrealdb.
It's inspired by two other projects that I'm working on:
- https://github.com/theopensource-company/kards-social
- https://github.com/theopensource-company/playrbase## How to use?
- Install SurrealDB on your system.
- Run a local database and run all table definitions in there that are included in the tables folder.
- I personally suggest to use Surrealist: https://github.com/StarlaneStudios/Surrealist
- Adjust the connection settings in the hooks/Surreal.tsx file
- Run `pnpm i` in the root of the project to install dependencies.
- Run `pnpm dev` to start the NextJS development server.
- Access the app at: http://localhost:8000