4 releases
0.1.3 | Jul 2, 2020 |
---|---|
0.1.2 | Jul 2, 2020 |
0.1.1 | Mar 11, 2020 |
0.1.0 | Mar 7, 2020 |
#1485 in HTTP server
29 downloads per month
Used in todo_web_server
21KB
437 lines
todo_app_server
Note: todo app server is developed based on Warp's example code at Todo; here sqlite database is used, instead of in-memory database found in the warp example.
Goals
- Learn Rust language
- Warp framework to run it as an app-server
- To serve application data through Restful APIs
- To access application data, develop a separate todo_web_server
How to use it
- Clone or download this app
- Edit Settings.toml file to update names of database folder, log folder, ip address, etc.
- Build an executable file using: $cargo build --release
- Copy the following files/folder into a separate folder, say "~/projects"
a. target/release/todo-app_ file
b. Settings.toml file
c. todo_app.service file - Edit todo_app.service for folder names and follow instructions in it, to run this app as a service in linux
- Assuming entry in Settings.toml file for ip-address as 127.0.0.1:3030, open up a web browser and enter url as http://127.0.0.1:3030/todos
- To access the app server, either use Postman or install Todo-web app.
Demo
A demo application is running at the following address (browser or Postman can be used to access data):
Todo-App Demo
License
MIT
Dependencies
~58MB
~1M SLoC