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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go + React.js + Docker + PostgreSQL.

go-doc

REST API tutorial:

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
.

About

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


Languages

Language:Go 100.0%