GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - centralmind/sample_databases

BranchesTags
Open more actions menu

Latest commit

 

History

32 Commits
32 Commits

Folders and files

NameName
Last commit message
Last commit date
.devcontainer
.devcontainer
 
 
dvd-store
dvd-store
 
 
ecommerce
ecommerce
 
 
README.md
README.md
 
 
Sample-databases.md
Sample-databases.md
 
 
connection.yaml
connection.yaml
 
 

Repository files navigation

Open in GitHub Codespaces

Sample Database API Generation Example using Github Codespaces

This example demonstrates how to:

  • Launch the Discovery process
  • Generate APIs
  • Launch an API Server

The example uses a sample public PostgreSQL database hosted on Supabase.

Prerequisites

  • Google Gemeni API Key - API Free tier is available
  • 🚀 Launch Codespaces with prepared enviroment

Usage

1. Start the Discovery Process

Run the following commands to start the discovery process. Replace YOUR_KEY with your Gemini API key. Google provides a free tier for API keys without requiring a credit card or a complicated registration process, here:

export GEMINI_API_KEY=YOUR_KEY
./gateway discover \
  --config connection.yaml \
  --ai-provider gemini \
  --prompt "Develop an API that enables a chatbot to retrieve information about data. Try to place yourself as analyst and think what kind of data you will require, based on that come up with useful API methods for that"

2. Launch the REST API Server

To start the REST API server and test its functionality, run:

./gateway start rest \
  --config gateway.yaml \
  --servers https://${CODESPACE_NAME}-9090.app.github.dev/

Note

Make sure you have the necessary configuration files (connection.yaml and gateway.yaml) set up before running the commands.

About

No description, website, or topics provided.

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.