Skip to content

Lukmanern/go-supabase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

USAGE.PNG

Go ToDoList with Supabase

A simple command-line todo list application written in Go, using a PostgreSQL database.

Features :

  1. Exit App
  2. Create TODO
  3. Read TODO (in 3 ways)
  4. Update TODO (Edit)
  5. Update TODO Status
  6. SoftDelete TODO
  7. Restore TODO (From SoftDelete)
  8. Destroy (Delete Permanent)
  9. Hard Reset (DROP TODO TABLE -> RECREATE TABLE)
  10. Verify User Action (For Destroy and Hard Reset)

Set Up Note

  1. ENV File Copy .env.example -> .env

for unix, command :

cp .env.example .env

or create manual :

dbname=postgres
user=postgres
port=5432
host=MAYBE_SECRET
password=ALWAYS_SECRET
  1. Variables

Loot at func getENV(), and don't forget to change the path value.

path := "C:/Users/Lenovo/go/src/DB_CLI/.env"

Directory Structure

   ├── .gitignore
   ├── README.md
   ├── banner
   │   └── banner.go -> show banner
   ├── database
   │   ├── .env
   │   ├── .env.example
   │   ├── create-table.sql -> connection and create sql
   │   └── db.go
   ├── dev-note.md -> note for developers
   ├── go.mod
   ├── go.sum
   ├── handler
   │   └── error.go -> throw err and exit app
   ├── helper
   │   ├── input.go -> get user input
   │   └── options.go -> show menu/ options
   ├── main.go
   └── usage.png

update.PNG

Supabase

Supabase is an open-source platform for building scalable web applications. It provides a set of tools and services for building modern, real-time applications, including a PostgreSQL database, a serverless functions platform, and a real-time API.

Supabase is designed to be easy to use and offers a number of features that make it a powerful tool for building web applications. It has a built-in API that allows you to interact with your database using simple HTTP requests, and it supports real-time updates using websockets. It also has a built-in functions platform that allows you to run serverless functions in response to events such as new data being added to your database.

In addition to these core features, Supabase also offers a number of other tools and services that can help you build better web applications. It has a powerful set of API functions that allow you to do things like search, sort, and filter data, and it has a number of integrations with popular third-party tools such as Stripe, Twilio, and Slack.

Overall, Supabase is a powerful and flexible platform for building modern web applications, and it is particularly well-suited for building real-time applications that need to handle large amounts of data and provide real-time updates to users.

About

Go ToDoList with PostgreSQL Supabase.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages