Skip to content

A simple Authentication and Authorization using (JWT) in golang

Notifications You must be signed in to change notification settings

Shoetan/goStdlib-RestAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple GoLang REST API with JWT Authentication

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.

Table of Contents

Installation

To run this project locally, you need to have Go installed on your machine. Follow these steps:

  1. Clone the repository

  2. Navigate to the project directory:

  3. 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

  4. Run the server: go run main.go

  5. Run docker container docker compose up -d go_db

About

A simple Authentication and Authorization using (JWT) in golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published