This is a simple REST API created using the Go standard library. The service allows for user authentication and authorization using JSON Web Tokens (JWT). It consists of three endpoints: one for user registration, one for user login, and one for fetching user records from the database.
To run this project locally, you need to have Go installed on your machine. Follow these steps:
-
Clone the repository
-
Navigate to the project directory:
-
Install dependencies: If you just want to run your code, use go build or go run . - your dependencies will be downloaded and built automatically If you want to save a copy of your dependencies locally, use go mod vendor
-
Run the server: go run main.go
-
Run docker container docker compose up -d go_db