https://github.com/setsal/akkahttp-scala-server
simple restful http server by scala
https://github.com/setsal/akkahttp-scala-server
Last synced: 4 months ago
JSON representation
simple restful http server by scala
- Host: GitHub
- URL: https://github.com/setsal/akkahttp-scala-server
- Owner: setsal
- Created: 2019-06-09T19:01:17.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-10T18:48:50.000Z (almost 7 years ago)
- Last Synced: 2025-01-10T08:32:17.991Z (over 1 year ago)
- Language: HTML
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# akkahttp-scala-server
simple restful http server by scala
## Requirements
- SBT
- Scala
- MariaDB or MySQL
## Configuration
Modify the file `application.conf.example` to `application.conf` with the correct information.
## Getting started
Deployment:
Run developement server on `localhost:8080`
```
$ sbt run
```
Data & testing:
When the developement server start, it will do the migration first.
If you want to add some simple data to test, please execute the `init.sql` in your database.
## Restful API Interface
**USERS**
- `GET /demo/users`
- `GET /demo/users/user_id`
- `POST /demo/users`
- `PUT /demo/users/user_id`
- `DELETE /demo/users/user_id`
## Contributors
+ setsal lan
+ xia.shu.12