Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jcksnvllxr80/go-server
This tutorial is the first 20 minutes of the following video
https://github.com/jcksnvllxr80/go-server
go golang webserver
Last synced: 23 days ago
JSON representation
This tutorial is the first 20 minutes of the following video
- Host: GitHub
- URL: https://github.com/jcksnvllxr80/go-server
- Owner: jcksnvllxr80
- Created: 2022-04-03T03:44:05.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-05T14:23:04.000Z (over 2 years ago)
- Last Synced: 2024-06-19T20:56:46.822Z (6 months ago)
- Topics: go, golang, webserver
- Language: Go
- Homepage: https://www.youtube.com/watch?v=jFfo23yIWac&t=22s
- Size: 3.11 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Web Server that Listens on Port 8080 in Go
This was all done on a mac-mini running ubuntu 20.04 LTS. This was a tutorial from freeCodeCamp. You can watch it here https://www.youtube.com/watch?v=jFfo23yIWac&t=22s
## Prereqs
1. Install Go
2. cd ~/Go
3. mkdir a src folder in this directory if it doesnt exist (this is where go-server directory resides)## Cloning, Building, Running the code
```bash
git clone https://github.com/jcksnvllxr80/go-server.git
go mod init
go build
go run main.go
```## Using the web server
### Test path to index.html
```bash
localhost:8080/
```### Test path to 'hello' function
```bash
localhost:8080/hello
```### Test path to 'form' function
```bash
localhost:8080/form
```