Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/csini/letsgo-blog
A small microservice written in golang. It has a REST api generated from openapi yaml and reads/writes data from database with ORM based gorm. The project uses maven (mvnGolang)
https://github.com/csini/letsgo-blog
golang gorm maven openapi
Last synced: 10 days ago
JSON representation
A small microservice written in golang. It has a REST api generated from openapi yaml and reads/writes data from database with ORM based gorm. The project uses maven (mvnGolang)
- Host: GitHub
- URL: https://github.com/csini/letsgo-blog
- Owner: Csini
- License: mit
- Created: 2024-02-09T08:20:37.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-18T12:13:26.000Z (11 months ago)
- Last Synced: 2024-11-10T03:16:13.282Z (2 months ago)
- Topics: golang, gorm, maven, openapi
- Language: Go
- Homepage:
- Size: 85.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go API Server for letsgo-blog
Mini Application providing something to something like a wannabe Blog.
### Running the server
1) build executable run
```
mvn clean install -Passembly
```executable is under letsgo-bog-server/bin
2) navigate to letsgo-bog-server/bin and start there
3) sqlite db with data is copied there from letsgo-blog/server/res
4) user/pw is userid/userid1 to every user
5) server url is for example
http://localhost:8085/letsgo/v1/api/statistics/200
api documentation is under letsgo-blog-api
### Running the server with docker TODO (not working yet)
To run the server in a docker container
```
docker build --network=host -t openapi .
```Once image is built use
```
docker run --rm -it openapi
```