jwtauth-gofiber
所属分类:Web服务器
开发工具:GO
文件大小:0KB
下载次数:0
上传日期:2024-04-09 05:13:36
上 传 者:
sh-1993
说明: Golang web服务器,使用Go Fiber进行JWT身份验证
(Golang web server with JWT Auth using Go-Fiber)
文件列表:
.idea/
controller/
database/
models/
tmp/
.air.toml
.env
go.mod
go.sum
main.go
package-lock.json
# jwtauth-gofiber
## Introduction
This repository implements a Golang web server using the Gofiber framework for routing and HTTP handling. It utilizes JSON Web Tokens (JWT) for user authentication and authorization, and leverages a MySQL database for user management and data persistence.
## Prerequisites
- **Golang:** Ensure Golang is installed and configured on your system. Verify installation with `go version`. Download from the official website if needed: [https://go.dev/doc/install](https://go.dev/doc/install)
- **MySQL:** Set up a MySQL database server and create a database for the application. Refer to the MySQL documentation for installation instructions: [https://dev.mysql.com/doc/](https://dev.mysql.com/doc/)
- **Gofiber:** Install the Gofiber library: [https://docs.gofiber.io/](https://docs.gofiber.io/)
- **GORM:** Install GORM: [https://gorm.io/](https://gorm.io/)
## Installation
1. Clone the repository:
```bash
git clone https://github.com/kevinjuliow/jwtauth-gofiber
2. Open Project Directory
```
cd jwtauth-gofiber
## Environment
Remember to replace `DB_USERNAME` and `DB_PASSWORD` with your actual database credentials if you're using a MySQL database.
DB_USERNAME=your_username
DB_PASS=your_password
DB_NAME=your_name
近期下载者:
相关文件:
收藏者: