Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Disat/gtodo

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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:

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

About

A todo restful api service base on go language(gin+vue)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Go 70.5%
  • Vue 23.2%
  • JavaScript 5.0%
  • HTML 1.3%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.