https://github.com/tokizuoh/statice
[Finished] Implementation of session management using cookies by Go.
https://github.com/tokizuoh/statice
golang web
Last synced: about 1 month ago
JSON representation
[Finished] Implementation of session management using cookies by Go.
- Host: GitHub
- URL: https://github.com/tokizuoh/statice
- Owner: tokizuoh
- Created: 2022-04-20T03:55:13.000Z (about 4 years ago)
- Default Branch: develop
- Last Pushed: 2022-04-22T04:11:33.000Z (about 4 years ago)
- Last Synced: 2026-05-27T07:37:18.671Z (about 1 month ago)
- Topics: golang, web
- Language: Go
- Homepage:
- Size: 81.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# statice
Implementation of session management using cookies by Go.
## Docker Version
```sh
> docker --version
Docker version 20.10.8, build 3967b7d
```
## Usage
Task: https://taskfile.dev/#/installation
### 1. Setup Docker-Container
```sh
# (= docker-compose up --build -d)
> task build
# (= docker-compose exec front go run main.go)
> task rf
```
### 2. Access `localhost:8081/login`

### 3. Enter ID and password
If you submit the correct ID and password, a SessionID will be generated and redirected to `/home`. SessionID is stored in a cookie.
- ID: `test-id`
- password: `test-password`
Even if you transition to `/login` after login, if SessionID is present in the cookie, you will be redirected to `/home.`