inkollusireeshaadharani / vue-starter-kit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vue-starter-application

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.

Features

  • Create, read, and delete tasks in a SurrealDB table.
  • Error handling for database interactions.
  • Parameterized queries to prevent SQL injection.

Prerequisites

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.

Developing using the starter kit

  1. Clone this repository

    git clone https://github.com/inkollusireeshaadharani/vue-starter-kit.git
  2. Navigate to the project directory

    cd vue-starter-kit
  3. Install Dependencies

    npm install
  4. 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.

  5. 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.

  6. Run the project in development mode

    npm run dev
  7. Access the application in your web browser at http://localhost:5173.

  8. Do not forget to shut down SurrealDB when you are done.

    docker compose down

Usage

  • 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.

Screenshot

Screenshot

Contributing to this repository

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

About


Languages

Language:JavaScript 44.6%Language:Vue 25.1%Language:CSS 23.6%Language:HTML 6.7%