https://github.com/luanpotter/spark-todos-rest-api
Simple TODOs REST API using Spark Java
https://github.com/luanpotter/spark-todos-rest-api
api rest spark-java todos
Last synced: about 2 months ago
JSON representation
Simple TODOs REST API using Spark Java
- Host: GitHub
- URL: https://github.com/luanpotter/spark-todos-rest-api
- Owner: luanpotter
- Created: 2019-03-07T03:31:34.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-07T22:53:53.000Z (about 6 years ago)
- Last Synced: 2025-02-06T07:12:14.531Z (4 months ago)
- Topics: api, rest, spark-java, todos
- Language: Java
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spark-todos-rest-api
[](https://travis-ci.org/luanpotter/spark-todos-rest-api)
This is a CRUD REST api for a todo model with two fields: a Long id and a String text (text of the todo).
It uses Spark for the web application framework and Dalesbred for database access. It uses postgres database on dev environment and hsqldb on tests.
Thanks to Despegar.com for providing us with [this](https://github.com/despegar/spark-test) nice utility for testing Spark applications.
## Setup
Run
```bash
mvn clean install
```To download all dependencies and such, then start the API with
```bash
mvn exec:java -Dexec.mainClass="xyz.luan.rest.todos.Main"
```Alternatively, you can import to Intellij IDEA (via the Import maven project option) and then use the commands from the IDE to run.