• Stars
    star
    279
  • Rank 147,967 (Top 3 %)
  • Language
    Go
  • Created over 6 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Example crud operation using Golang and MySql

go-mysql-crud

Sample crud operation using Golang and MySql

API ENDPOINTS

All Posts

  • Path : /posts
  • Method: GET
  • Response: 200

Create Post

  • Path : /posts
  • Method: POST
  • Fields: title, content
  • Response: 201

Details a Post

  • Path : /posts/{id}
  • Method: GET
  • Response: 200

Update Post

  • Path : /posts/{id}
  • Method: PUT
  • Fields: title, content
  • Response: 200

Delete Post

  • Path : /posts/{id}
  • Method: DELETE
  • Response: 204

Required Packages

Quick Run Project

First clone the repo then go to go-mysql-crud folder. After that build your image and run by docker. Make sure you have docker in your machine.

git clone https://github.com/s1s1ty/go-mysql-crud.git

cd go-mysql-crud

chmod +x run.sh
./run.sh

docker-compose up

More Repositories

1

py-jsonq

A simple Python package to Query over Json Data
Python
124
star
2

CarRentalSystem

Online Car rental system.
Python
28
star
3

gittivity

Desktop notifier for git browser activity
Python
24
star
4

goin

`in` operator for go
Go
17
star
5

learning-resources

CS best self learning resources
14
star
6

Python-Algorithms

This repository contains Data structures and Algorithms in Python.
Python
10
star
7

TrailerTube

TrailerTube is a trailer-sharing website.Most of the content on TrailerTube has been linked from YouTube.Unregistered users can watch videos, and registered users are permitted to upload an unlimited number of videos.
Python
8
star
8

uPonda

A virtual library where anyone can write, publish, read books and also add feedback for books
Python
8
star
9

Dropbox-Duplicate-Remover

Remove duplicate files from dropbox
Python
5
star
10

UVA-problem-solution-with-CPP-code

I got accepted 300+ accepted code in UVA online judge.Here are few code.link: http://uhunt.felix-halim.net/id/222050
C++
3
star
11

Calculator

A simple Colorful Calculator ,developed by python Gui with squre and squreroot button.
Python
2
star
12

ApacheLog

Python
2
star
13

GolangPractice

Here is my Golang practice code
Go
2
star
14

Web-Calculator

Simple Web Calculator
HTML
2
star
15

30-Days-of-Go-Code

Go
2
star
16

Movie-Site-With-My-Fevourite-Movie-Trailler

A mini project of my fevourite movies . If you click on the movie the trailler of the movie will be played
Python
2
star
17

postman

Online Curiar Service Provider
Python
2
star
18

Adorsholipi

Learning desktop based application for kids.
2
star
19

CGPA-Calculator

Calculate Cgpa Using This Script
Python
2
star
20

s1s1ty.github.io

My Personal Site Link
HTML
1
star
21

ConwayGameOfLife

Build API of Conwayโ€™s Game of Life
Python
1
star
22

SurveyApp

Survey application with beautiful graph representation
JavaScript
1
star
23

JobShop

Python
1
star