Skip to content

radiant-kal/vangoh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

140 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog - RESTful API in Go & JS Frontend

This is a basic implementation of an API using Go. It provides the ability to handle simple blog actions. This API is meant to be as lightweight as possible. The biggest external package that is uses is gorilla/mux.

Rendering templates from Go could have been done for this project. I decided to not do that so I can get the experience of doing this with vanilla Javascript.

Installation

git clone git@github.com:nicholasrucci/blog.git
cd blog
go build
./blog

API Endpoints

GET     /api/posts
GET     /api/posts/:id
POST    /api/posts
PUT     /api/posts/:id
DELETE  /api/posts/:id

This isn't the finished product!

  • CRUD
  • Database functionality
  • Grab data from API
  • Hook up views
  • Clean up server side code
  • Structure server side code
  • Add more error handling
  • Authentication
  • 404 pages
  • Restrict access to admin pages

About

Vanilla Go API

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors