An open API service indexing awesome lists of open source software.

https://github.com/monkrus/go-restapi-react-postgres

REST API tutorial. Go + React.js + PostgreSQL. Walk-through of the https://www.youtube.com/watch?v=u4uhmbOoo4o&t=371s
https://github.com/monkrus/go-restapi-react-postgres

api golang gorilla gorilla-mux mux postgresql react rest-api restapi-react-postgres

Last synced: 2 months ago
JSON representation

REST API tutorial. Go + React.js + PostgreSQL. Walk-through of the https://www.youtube.com/watch?v=u4uhmbOoo4o&t=371s

Awesome Lists containing this project

README

          

# Go + React.js + Docker + PostgreSQL.
[![go-doc](https://godoc.org/github.com/prometheus/client_golang?status.svg)](https://godoc.org/github.com/prometheus/client_golang)

## REST API tutorial:
* [X] Lesson 0: [Setup project:'Hello, World'](https://www.youtube.com/watch?v=u4uhmbOoo4o&t=371s)

details
1. We are using an MVC architecture (module-DB, view-front end, controller-back end).

2. REST API connects controller and view part using AJAX.

3. Click on F5 to run and debug (plugin for VS Code has to be installed)

4. Install gorilla/mux by typing `go get -u github.com/gorilla.mux`

5. Use F1 in VS Code to add gorilla/mux

6. Add a `router` to interract with HTPP requests

7. Add IndexHandler function (has access to any part of the HTTM page)

8. `CTRL+s` to update the libraries

9. List_of_TCP_and_UDP_port_numbers

10. LINUX users: run `go build` , the run from the current directory (e.g. `sudo ./yourexample`)

11. Use F5 in VS Code to select environment

.