GitXplorerGitXplorer
f

RESTapi-Golang

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
0e84173ec579c44a0c1b2cc007e163161e78aa1d

Add files via upload

ffatihbaltaci committed 8 years ago
Unverified
26def1044e9ad8ea9cc4be7abbcbcee3db52dfec

Update main.go

ffatihbaltaci committed 8 years ago
Unverified
13bec2468f7e6e97d1b2d2186e21c9f75e606df3

Add files via upload

ffatihbaltaci committed 8 years ago
Unverified
1ab5490fdb235a59d5e2fe6ea1c2365088c7efd9

Update README.md

ffatihbaltaci committed 8 years ago
Unverified
cb1b97fa74d8c02ec6b94e447b2c73f77c40c5ac

create

ffatihbaltaci committed 8 years ago
Unverified
1b0e6eca91ef3f05d3c25e824ed68412bebfd6e1

Initial commit

ffatihbaltaci committed 8 years ago

README

The README file for this repository.

RESTapi-Golang

RESTapi project with Go programming language

Routers

* GET a event detail - /event/:id * GET all events - /events * POST new event details - /event

Steps

1. Create Database and Tables

Run RESTapi_Go_Database.sql file in MySQL database. EER Diagram of this database is shown below.

alt tag

2. Get all the dependencies

In the main.go file there are 2 imports from github. To get the dependencies:

go get

3. Build and Run

First of all, change username, password for MySQL connection on 17th line in main.go

go build main.go
main

alt tag

4. Test

GET localhost:3001/events

5

GET localhost:3001/event/5

6

POST localhost:3001/event

7