This SurrealDB Starter Kit for Vue.js is a simple task manager application that allows you to manage tasks using SurrealDB as the database backend. The starter kit should help you get started with building applications using Vue.js and SurrealDB.
- Create, read, and delete tasks in a SurrealDB table.
- Error handling for database interactions.
- Parameterized queries to prevent SQL injection.
Before you begin, ensure you have met the following requirements:
- Node.js: Make sure you have Node.js installed on your system. You can download it from here.
-
Clone this repository
git clone https://github.com/inkollusireeshaadharani/vue-starter-kit.git
-
Navigate to the project directory
cd vue-starter-kit
-
Install Dependencies
npm install
-
Configure SurrealDB connection: Open the src/db/surreal.js file and configure the connection settings for SurrealDB. You may need to update the database URL and credentials.
-
Get SurrealDB up and running using Docker
docker compose up -d
Note: You can also install SurrealDB on your machine. For more information, check out SurrealDB installation.
-
Run the project in development mode
npm run dev
-
Access the application in your web browser at http://localhost:5173.
-
Do not forget to shut down SurrealDB when you are done.
docker compose down
- Create a task: Enter a task name along with its status and click the Add Task button.
- Delete a task: Click the Delete button next to the task you want to delete.
- View the list of tasks: All the tasks are available under the List of Tasks section.
If you have any questions or suggestions, please feel free to open an issue or a pull request.
Learn more about SurrealDB here: https://surrealdb.com