Test a Golang API on the web

152 views
Skip to first unread message

aimar

unread,
May 27, 2019, 2:01:38 PM5/27/19
to golang-nuts
Hi,

My teacher has asked me to develop an API with Golang and test it on the web instead of localhost. I was thinking of github.io but then I figured out, it doesn't support server-side languages and just support static pages. Would you please let me know, if there is any platform which I can test my API online rather than localhost? (for free, of course)
It is worth to mention my API generally generates just a couple of strings from a JSON file, thus it does not need a database.

thanks,
Aimar

Jan Mercl

unread,
May 27, 2019, 2:04:51 PM5/27/19
to aimar, golang-nuts
On Mon, May 27, 2019 at 8:01 PM aimar <amir.dor...@gmail.com> wrote:

> Would you please let me know, if there is any platform which I can test my API online rather than localhost? (for free, of course)

GCP free tier?

mh cbon

unread,
May 27, 2019, 2:41:12 PM5/27/19
to golang-nuts

Agniva De Sarker

unread,
May 28, 2019, 8:54:45 AM5/28/19
to golang-nuts
I think the Heroku free tier is a great tool for this. 

Michael Banzon

unread,
May 29, 2019, 4:31:41 PM5/29/19
to aimar, golang-nuts

You could look at Heroku. It should be pretty easy to get started with.

 

You could also find a coupon code for Digital Ocean and fire up a server on your own.

 

/ M

 


From: golan...@googlegroups.com <golan...@googlegroups.com> on behalf of aimar <amir.dor...@gmail.com>
Sent: Monday, May 27, 2019 9:28:21 AM
To: golang-nuts
Subject: [go-nuts] Test a Golang API on the web
 
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/5202a914-c3bc-48d4-bdb0-e613a83ea24d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Leonel Quinteros

unread,
May 30, 2019, 10:15:11 AM5/30/19
to golang-nuts
Amazon Web Services will give you the smallest instance of a virtual machine for free (at least for a year): https://aws.amazon.com/en/free
On Google Cloud Platform you can also have several services for free (forever) including a VM instance and an AppEngine deploy: https://cloud.google.com/free/
Similar options for Azure: https://azure.microsoft.com/es-es/free/

Good luck with your project! 
Reply all
Reply to author
Forward
0 new messages