modulepackage
0.0.0-20240917172446-1b8c1d73cf6f
Repository: https://github.com/samgabel/web-server.git
Documentation: pkg.go.dev
# README
Go Web Server
This is a WIP web server project meant to learn the net/http package after Go 1.22.
View the git Commit History in order to see the lesson objectives.
[!IMPORTANT] This is not meant to be used in any official capacity, so the
.env
file is included for simplicity.
Installation
-
Clone this repository:
$ git clone https://github.com/your-username/web-server.git $ cd web-server
-
Compile the web server. We can either compile or run directly with Go, or build a Docker image:
- (option) Build docker image
$ docker build -t web-server .
Container port 8080 is exposed
- (option) Build docker image
Usage
make run
-> runs the web-servermake debug
-> will wipe the DB and run the web-servermake test
-> will runmake debug
and run some cURL commands against the web api
TODO
- Create API documentation
# Structs
No description provided by the author
No description provided by the author
No description provided by the author