comment_app_frontend

Crates.iocomment_app_frontend
lib.rscomment_app_frontend
version0.1.3
sourcesrc
created_at2020-06-06 15:51:10.5177
updated_at2020-07-07 10:20:14.610766
descriptionA Comment App Front End Server
homepagehttps://github.com/mohankumaranna/comment_app_frontend
repositoryhttps://github.com/mohankumaranna/comment_app_frontend
max_upload_size
id250730
size172,512
Mohan (mohankumaranna)

documentation

README

Comment App Frontend

It renders web pages to access/add/modify/delete comments data from/to comment_app_backend server.

Dependency

A running comment_app_backend server is required.

Goals

  1. To learn Rust; web application in particular.
  2. To use it as a commenting module/app/library in other Rust based web applications.
  3. To keep comment data along with application, and hence, to avoid third party commenting system.

How to use it

  1. Clone or download this app from github.
  2. Edit Settings.toml file to update ip address, app server's ip address, log folder name.
  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-frontend file
    b. Settings.toml file
    c. templates folder
    d. images folder
    e. authorization_data folder
    f. comment_app_frontend.service file
  5. Edit comment_app_frontend.service for folder names and follow instructions in it, to run this app as a service in linux.
  6. Assuming an entry in Settings.toml file for ip_address as 127.0.0.1:6060 and comment_app_frontend server running at 127.0.0.1:6050, open up a web browser and enter url as http:://127.0.0.1:6060/comments. Browser shows Comments view. 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.

Demo

Click here to view demo.

License

MIT

Commit count: 0

cargo fmt