This is framework project for quickly build a website with full-stack (React + go).
| DevOpts | Version |
|---|---|
| OS | Ubuntu 25.04 |
| go | 1.26.2 |
| nodejs | v22.23.3 |
| yarn | 1.22.22 |
| Type | Command |
|---|---|
| Make all | make |
| Backend | make backend |
| Frontend | make frontend |
| Run | make run |
| Tidy | make tidy |
| Lint | make lint |
| Generate frontend openapi | make openapi |
| Docker image | make docker |
| Clean (build + db) | make clean |
make builds the backend binary and the frontend resources under the build directory.
Setup the configuration file: config.yaml
And run:
make run-
Check the config
Modify system settings at
./docker/config.yaml, e.g. the default login credential:username: "admin" password: "0000"
For other settings, make sure the change is reflected in
docker-compose.yamltoo. -
Up the compose
cd docker docker compose up -dThe default db is stored at
/var/lib/system/db, mounted in the compose file. -
Down the compose
docker compose down
- Add APIs in backend.
- Updaet APIs in postman and export the json file
- Update the openapi.yaml with your postman json
- Use
make openapito generate the api typescript file in frontend - Go to make!