Categorygithub.com/helioLJ/golang-rest-api-personalities
modulepackage
0.0.0-20240318112629-b2c333d7f6f9
Repository: https://github.com/heliolj/golang-rest-api-personalities.git
Documentation: pkg.go.dev

# README

Golang REST API Personalities

This is a RESTful API built with Go. It provides CRUD operations for managing "personalidades".

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Go 1.21.3 or later
  • Docker

Installing

  1. Clone the repository:
git clone https://github.com/helioLJ/golang-rest-api-personalities.git
  1. Navigate to the project directory:
cd golang-rest-api-personalities
  1. Install the dependencies:
go mod download
  1. Run the application:
go run main.go

The server will start on localhost:8080.

API Endpoints

  • GET /api/personalidades: Fetch all personalidades
  • GET /api/personalidades/{id}: Fetch a single personalidade by ID
  • POST /api/personalidades: Create a new personalidade
  • DELETE /api/personalidades/{id}: Delete a personalidade by ID
  • PUT /api/personalidades/{id}: Update a personalidade by ID

Built With

  • Go - The programming language used
  • Gorilla Mux - The HTTP router and URL matcher for building Go web servers
  • PostgreSQL - The database used

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author