# todo_app_server **Note:** todo app server is developed based on Warp's example code at [Todo](https://github.com/seanmonstar/warp/blob/master/examples/todos.rs); here sqlite database is used, instead of in-memory database found in the warp example. # Goals 1. Learn Rust language 2. Warp framework to run it as an app-server 3. To serve application data through Restful APIs 4. To access application data, develop a separate [todo_web_server](https://github.com/mohankumaranna/todo_web_server) # How to use it 1. Clone or download this app 2. Edit **Settings.toml** file to update names of database folder, log folder, ip address, etc. 3. Build an executable file using: **$cargo build --release** 4. 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 5. Edit **todo_app.service** for folder names and follow instructions in it, to run this app as a service in linux 6. 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 7. To access the app server, either use Postman or install [Todo-web app](https://github.com/mohankumaranna/todo_web_server). # Demo A demo application is running at the following address (browser or Postman can be used to access data): [Todo-App Demo](https://todo-web.eastgate.in) # License MIT