Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ischaojie/gtodo
A todo restful api service base on go language(gin+vue)
https://github.com/ischaojie/gtodo
gin go gorm mini restful-api vue
Last synced: about 23 hours ago
JSON representation
A todo restful api service base on go language(gin+vue)
- Host: GitHub
- URL: https://github.com/ischaojie/gtodo
- Owner: ischaojie
- Created: 2019-10-09T06:30:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-05T02:21:37.000Z (over 1 year ago)
- Last Synced: 2025-01-20T03:54:16.015Z (7 days ago)
- Topics: gin, go, gorm, mini, restful-api, vue
- Language: Go
- Homepage:
- Size: 456 KB
- Stars: 29
- Watchers: 0
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# todos-go
A todos restful-api service base on go language, use gin+gorm+vue.This todos servie is for learning go web development, Use a front-end and back-end separation approach.
front-end use Vue and back-end use Gin. just for fun, for learn.## show
![screentshot](todogif.gif)## how to run
```
> git clone https://github.com/shiniao/mini_todo.git# mysql create database:
> create database todo;# Then change the file config.yaml for your needs.
# run server
> cd server
> go run main.go# run client
cd client
npm install
npm run serve
```## todos api
You can visit `.../swagger/index.html` for more detail.
First, use todos api you need to get a token, Then take tokens with each visit:
```shell script
POST /token get a token, need take `key:matata`
```That's all api:
```
GET /v1/todos
GET /v1/todos/:id
POST /v1/todos
PUT /v1/todos/:id
DELETE /v1/todos/:id
```