comment_app_backend 0.1.3

Serves comments through Restful APIs
Documentation
# Comment App Backend  
It provides basic activities such as add, update, delete on comments and replies; stores them into **SQLite** database.  
  
# Goals  
    
1. To learn Rust language.  
2. To make a re-usable module / app / library.  
3. To support Anonymous users and Logged-In users
   - _Anonymous_ users cannot modify or delete comment once submitted; 
   - whereas, _Logged-In_ users can modify or delete it.  

# 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, ...  
3. Build an executable file using **$cargo build --release**.  
4. Copy following files/folder into a separate folder, say "~/projects":  
    a. _target_/_release_/_comment-app-backend_ file  
    b. _Settings.toml_ file  
    c. _images_ folder  
    d. _comment_app_backend.service_ file  
5. Edit **comment_app_backend.service** for folder names; 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:6050, open up a web browser and enter url as http:://127.0.0.1:6050/comments.  Browser shows comments in JSON format. It confirms server is running.  
    - for other possible url paths, refer functions in __src/filters.rs__ source code file.  Each function at the start is shown with url path.  
    - this backend server can be accessed using  
        a. **Postman**  
        b. frontend server  
           - for frontend server, install [Comment_App_Frontend]https://github.com/mohankumaranna/comment_app_frontend.  
  
# Demo
Click [here](https://comment-app-demo.eastgate.in/) to view demo.  
     
# License  
MIT