https://github.com/potatogopher/vangoh
Vanilla Go API
https://github.com/potatogopher/vangoh
Last synced: 3 months ago
JSON representation
Vanilla Go API
- Host: GitHub
- URL: https://github.com/potatogopher/vangoh
- Owner: potatogopher
- License: mit
- Created: 2016-04-12T21:28:59.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-28T17:46:19.000Z (about 10 years ago)
- Last Synced: 2025-01-26T16:33:09.447Z (over 1 year ago)
- Language: HTML
- Homepage:
- Size: 2.24 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](http://www.gorillatoolkit.org/pkg/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
```bash
git clone git@github.com:nicholasrucci/blog.git
cd blog
go build
./blog
```
## API Endpoints
```js
GET /api/posts
GET /api/posts/:id
POST /api/posts
PUT /api/posts/:id
DELETE /api/posts/:id
```
## This isn't the finished product!
- [x] CRUD
- [x] Database functionality
- [x] Grab data from API
- [x] Hook up views
- [ ] Clean up server side code
- [ ] Structure server side code
- [ ] Add more error handling
- [ ] Authentication
- [ ] 404 pages
- [ ] Restrict access to admin pages