I'm preparing to develop a cross-platform mobile app that will store information as expandable trees of headings and sub-headings. I need a simple back-end that will allow an administrator to log in and edit the information. I imagine that the information will be stored in an SQL database and the user's app will then scrape this database once per day for updates.
Could somebody point me in the right direction, I can't find much information on this.
EDIT: Forgot to mention it's a mobile app.
Thanks in advance!
评论:
huydotnet:
Fulp_Piction:What's the feature of Go that you think will fit your need?
If "a simple back-end that will allow an administrator to log in and edit the information" is all what you need. Just go with Ruby on Rails, it has a super fast CRUD generator :D
huydotnet:It was suggested in another thread so I came to take a look.
Thanks, I'll check that out. I forgot to mention that it's a mobile app, does that change things?
devsquid:It's a mobile app, so you will use Go or something else for the backend API right? So it's will be ok, Ruby on Rails still keep yourself from writing more code than Go. But Rails has its downside, too many things come along your Rails project.
If you still prefer using Go, just look at Gin. There are some good tutorial here:
http://phalt.co/a-simple-api-in-go/
https://medium.com/@etiennerouzeaud/how-to-create-a-basic-restful-api-in-go-c8e032ba3181#.qtpckaqmw
kavehmz:Yea it's a perfect language for 'back ends'. There are many great ones, but Go is the one I prefer
danredux:In general Go is a simple language in design and tooling and fast to learn. Rob Pike, Simplicity It is highly readable and considerably fast. Overhead of creating a website in Go is not much more than other languages. Its static typing is kinda subtle and won't be in your way but will help a lot as project grows. Go in general is a very good pick and for some developers pleasing to use.
MySQL HTTP API if it's really that simply. :)
