Skip to content

Code-Hex/Why-need-validation-on-the-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Why need validation on the backend?

This project is an appendix for my blog article (about validation).

This application has a scenario.

Once upon a time, There was a war between the banana faction and the orange faction. One day, somebody said, “I’ve developed the voting application to prove which is better fruits!”

Now, which one will you vote for? Voting for any other fruit is a sin.

screenshot

How to setup and runs this?

go run main.go

and go to http://127.0.0.1:1323 with your browser.

Cheat

You can vote for other fruit this way.

$ curl 'http://127.0.0.1:1323/vote' -H 'Content-Type: application/x-www-form-urlencoded' --data-raw 'fruit=apple'

Refs

About

Why need validation on the backend?

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages