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
- Host: GitHub
- URL: https://github.com/monkrus/go-restapi-react-postgres
- Owner: monkrus
- Created: 2020-03-24T18:43:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-03T09:01:55.000Z (over 5 years ago)
- Last Synced: 2025-06-01T23:10:19.003Z (4 months ago)
- Topics: api, golang, gorilla, gorilla-mux, mux, postgresql, react, rest-api, restapi-react-postgres
- Language: Go
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go + React.js + Docker + PostgreSQL.
[](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
.