Skip to content

Nash0x7E2/learning-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

example of running GO API

Learning Go 😄

This repo contains code written as part of a learning exercise for Go.

The project focuses on a small book API written using Fiber and Gorm. End points allow users to perform basic CRUD operations backed by a SQLite database.

Project Structure 📕

The API is broken up into three distinct parts:

  1. main.go - Main package which kicks of the application. Routes and database setup are performed here.
  2. database - Contains functions and variables for interacting with the SQLite database via Gorm.
  3. book - Struct and handlers for reacting to incoming HTTP request.

Running locally 👾

To run this project locally, you must have Go 1.16.3 installed on your machine. Installation instructions can be found here.

  1. Clone the repo:
git clone https://github.com/Nash0x7E2/learning-go.git
  1. Open learning-go in your favourite text editor or terminal:
cd learning-go
  1. Run main.go:
go run main.go
  1. Have fun 🎉

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages