Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bowbahdoe/microhttp-todobackend
https://github.com/bowbahdoe/microhttp-todobackend
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bowbahdoe/microhttp-todobackend
- Owner: bowbahdoe
- License: apache-2.0
- Created: 2023-11-17T03:49:51.000Z (almost 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-18T01:02:57.000Z (12 months ago)
- Last Synced: 2023-11-18T05:48:32.220Z (12 months ago)
- Language: Java
- Size: 200 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Microhttp Todo Backend
This is an implementation of [https://todobackend.com/](https://todobackend.com/) written using
* [microhttp](https://github.com/ebarlas/microhttp)
* [sqlite](sqlite.org)Along with a few small helper libraries.
## Testing
To run the server against the api specs:
```
./mvnw clean compile jlink:jlink
./target/maven-jlink/classifiers/image/bin/server
```Then forward the server using something like [ngrok](https://ngrok.com/)
```
ngrok http 7777
```And run the tests [here](https://todobackend.com/specs/index.html) on the forwarded url.
- [Live Server](https://microhttp-todobackend.onrender.com/)
- [GUI Pointed at Live Server](https://todobackend.com/client/index.html?https://microhttp-todobackend.onrender.com/)## Feedback
There is some repetition in the code and a few things that aren't maximally efficient. The goals
here were to showcase usage of microhttp in a "real" scenario and to show a bit of what the world
is like without annotations, databind, or other such magic.With that context, feedback is welcome. Make an issue with what you think should be different or
you think is suboptimal.![Passing Tests](./img.png)