Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bowbahdoe/jdk-httpserver-todobackend
Implementation of https://todobackend.com/ based on jdk.httpserver
https://github.com/bowbahdoe/jdk-httpserver-todobackend
Last synced: 7 days ago
JSON representation
Implementation of https://todobackend.com/ based on jdk.httpserver
- Host: GitHub
- URL: https://github.com/bowbahdoe/jdk-httpserver-todobackend
- Owner: bowbahdoe
- License: apache-2.0
- Created: 2024-05-10T22:24:58.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-05-11T03:03:36.000Z (6 months ago)
- Last Synced: 2024-05-11T23:29:36.466Z (6 months ago)
- Language: Java
- Size: 181 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JDK Todo Backend
This is an implementation of [https://todobackend.com/](https://todobackend.com/) written using
* [The JDK Http Server](https://docs.oracle.com/en/java/javase/21/docs/api/jdk.httpserver/module-summary.html)
* [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.
## 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)