Version: 1.0.0
This is the backend part of the GoNav project, built with Go and the Gin framework.
- Go (version 1.16 or higher recommended)
- SQLite3
-
After cloning the project, enter the backend directory:
cd backend
-
Install dependencies:
go mod tidy
-
Configure the application:
- Open
config.yaml
and adjust the settings as needed.
- Open
-
Run the server:
go run main.go
-
The server will run at
http://localhost:8080
by default
The config.yaml
file contains the following settings:
server
:port
: The port on which the server runs (default: 8080)mode
: Gin mode, can be "debug" or "release"
database
:type
: Database type (currently only supports "sqlite")name
: Database file namepath
: Path to the database file
cors
:allowOrigins
: List of allowed origins for CORS
jwt
:secret
: Secret key for JWT token generationexpirationHours
: JWT token expiration time in hours
- User authentication
- Bookmark CRUD operations
- Category management
- Settings management
- Public bookmark sharing