Skip to content

MAACJR032/Go_Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go_Server

This is a simple Go server for handling CRUD operations. It is based on a tutorial by arthur404dev.

Features

  • Basic CRUD endpoints for managing data entries.
  • RESTful structure using Gin.
  • Database integration via GORM.

Getting Started

Prerequisites

  • Go installed on your system.
  • Air (optional) for live reloading during development.

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/Go_Server.git
    cd Go_Server
  2. Install dependencies:
    go mod tidy

Running the Server

To start the server, you can either:

  • Use air for live reloading during development:
    air
  • Or, if you prefer to run without live reloading, start the server with:
    go run main.go

API Endpoints

  • GET http://localhost:8080/api/v1/openings - List all entries
  • POST http://localhost:8080/api/v1/opening - Create a new entry
  • GET http://localhost:8080/api/v1/opening?id={id} - Retrieve a specific entry
  • PUT http://localhost:8080/api/v1/opening?id={id} - Update an entry
  • DELETE http://localhost:8080/api/v1/opening?id={id} - Delete an entry

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages