beego / beego

beego is an open-source, high-performance web framework for the Go programming language.
Other
31.64k stars 5.63k forks source link

The default app is actually not doing anything #5719

Open danysz opened 1 week ago

danysz commented 1 week ago

English Only. Please use English because others could join the discussion if they got similar issue!

Please answer these questions before submitting your issue. Thanks!

  1. What did you do? Created a new API app.

  2. What did you expect to see? To have the routes of v1/user and v1/object and the home available

  3. What did you see instead? Only 404 responses

  4. How to reproduce the issue? Just run the "bee api appname" cd to the directory go get bee run

  5. What version of Go and beego are you using (bee version)?


    | \ | |/ / __ | \ / \ / \ | |/ /| /| / ___/ \| ___| v2.1.0

├── GoVersion : go1.23.3 ├── GOOS : darwin ├── GOARCH : arm64 ├── NumCPU : 12 ├── GOPATH : /Users/xxxxxxx/go ├── GOROOT : /opt/homebrew/Cellar/go/1.23.3/libexec ├── Compiler : gc └── Date : Thursday, 14 Nov 2024

  1. What operating system and processor architecture are you using (go env)? GOHOSTARCH='arm64' GOHOSTOS='darwin'
lengpucheng commented 4 days ago

please you can try execute command bee generate routers

danysz commented 2 days ago

please you can try execute command bee generate routers

Hello

  1. It helped. The routes are created and are working.
  2. The command is not in the help so no way to find it.
lengpucheng commented 2 days ago

please you can try execute command bee generate routers

Hello

  1. It helped. The routes are created and are working.
  2. The command is not in the help so no way to find it.

it in help, you can execute bee help generate find it

danysz commented 2 days ago

Moved forward but errors are still here: Created a new api app and after tried to run command: bee generate scaffold institution -fields="name:string,type:int,city:string,address:string" -driver="postgres" -conn="postgres://postgres:postgres@127.0.0.1:5432/beego-05?sslmode=disable"

For the question "Do you want to migrate the database? [Yes|No]" if I answer Y is failing always

flycash commented 23 hours ago

can you provide the failed log?