close
Skip to content

alvinslee/golang-text-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Golang Text Microservice Demo

Running

go run main.go

Interacting with the service

  • curl http://localhost:8080/health
  • curl -X POST -d '{"input: "hello, world!"}' http://localhost:8080/spongebob
  • curl -X POST -d '{"input: "wow"}' http://localhost:8080/is-palindrome
  • curl -X POST -d '{"input: "this is a secret"}' http://localhost:8080/rot13

Deploying to Heroku

Install the heroku CLI.

Create the application in your Heroku account.

Then, set the heroku remote git repository: heroku git:remote -a <heroku-app-name>. This only needs to be done once.

Then push the code to heroku: git push heroku main

That's it. 😊

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages