Skip to content

This is a simplistic implementation of javascripts json-server using Go!

Notifications You must be signed in to change notification settings

brenogmrs/json-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json-server

This is a simplistic implementation of javascripts json-server using Go! It uses the the file called db.json at the root of the project to create a Web Server using the resources of it.


This JSON example would generate 5 routes with CRUD operations for each resource.

db.json example:

{
  "books": [
    {
      "id": 1,
      "author": "author",
      "name": "book"
    }
  ],
  "users": [
    {
      "id": 1,
      "age": 24,
      "email": "email@email.com",
      "name": "name",
      "password": "password"
    }
  ]
}

TODO List

  • create a generic field validator for POST and PUT requests
  • create a generic filtering by multiple query params for GET request

About

This is a simplistic implementation of javascripts json-server using Go!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages