gorardim/go_starter — reverse-engineered prompt
Reverse engineered prompt
Build me a simple Go server starter project that runs locally with two web entry points, one normal API on localhost port 7702 under /api, and one admin area on localhost port 7703 under /admin.
I want both sides to expose Swagger pages so I can open the docs in the browser and try the endpoints. The admin routes should accept an authorization token in the request header, and there should be a testing only admin endpoint that can create a sample tree shaped test case from JSON. The JSON should support a root user id and a nested test case object with fields like name, invest amount, club rate, and child test cases.
Please make the project easy to start from the command line, keep the code organized like a real Go backend starter, and include enough example routes and request examples so I can confirm everything works locally. Look up current docs online if you need to.
Want more depth? Deep Reverse