Skip to main content

Api

2019


Mux Cors

·2 mins

Handling CORS with Gorilla Mux #

In an earlier post I talked about create an API with golang using a few packages. One of the main ones packages many people use is mux for routes. This makes it easier handles routes within our application. Now we need setup our application to allow certain sites to talk with our api. Luckily Gorilla has another package that integrates seamlessly with Mux.

Go Api

·3 mins

Golang First API #

I have been following Golang for a little bit. It seemed interesting to me for a few reasons. One major one was the speed of it. Another was it’s syntax is similar to python. I am no python developer, but I have made a few side project with it. SO I decided to update and an aging Rails application. It’s just a simple crud application that displays martial arts rings at tournaments. While I could write the entire website with Go I opted in to make an api. The reason is I want to make a React site and mobile apps made with React Native. It’s a pretty simple rest API that needed to connect to a database. I used a few packages to make development practical