Skip to content

gaurav-2-0-0-2/go-sql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A simple application consuming APIs written in Go

  • Ensure you have sqlite installed. if not install it according to your OS.
    I am using Debian, the below command can also work on ubuntu/mint and similar distros
  • install sqlite3: sudo apt install sqlite3
  • clone the repo: git clone https://github.com/gaurav-2-0-0-2/go-sql.git
  • go to db folder & create a database (users) with command: sqlite3 app.db
  • build the code: go build main.go
  • run binary: ./main
  • you can test it by running: curl http://127.0.0.1:4000/users

API-DOCS

  • GET /users : Get all users
  • POST /create/user : Creates a new user
  • GET /user/<id> : Get user by id

Resource:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published