Skip to content

Vinisha/BackchannelApplication

Repository files navigation

a) Team
--> Vinisha Varre (vvarre)
--> Vartika Singh (vsingh3)
--> Prathibha Ayyappan(payyapp)

b) Test framework use  :- Test::Unit
    Capybara is also used for the integration tests

c) url :- http://localhost/3000

d) Commands to run and stop the app:-
	 	 	 	
1. create a new project on Rubymine
2. replace the app, db folder with the ones in our submission
3. replace the routes.rb's INNER BODY ALONE. DONT REPLACE THE FIRST LINE WITH THE PROJECT NAME.
4. delete index.html
5. run db:migrate
6. run the app!

e) Metrics calculation:- We are assigning a value to each day in year. 
   The metric which we used here is:
   @metric = post.Votes  + (@total_points - @days) + post.id
   We have given the total points as 180(since, a semester has 6 months at most with 30 days in each month.
   As the days go on, the difference between creation day and present day is calculated and subtracted from the total
   points. And the post id is taken as extra in case the values, post.Votes  and (total_points – @days) become zero.

ADMIN Account:
Username: vvarre
Password: vinisha

Admin can create another admin by clicking on "Create a user" then choosing the role as "Admin" in dropdown.

USER Account:
Username: vsingh3
Password:vartika

f) Functionality:

  - In post, one can not like his own post but can reply to anyone's post including himself.
  - User can not like his own post and can not like his own reply. He even can not like any post/reply more than once.
  - Admin can create users, admins, delete users.
  - User can search by UnityID(name in UI) or post content/subject. Any person, can search the posts even without
    logging in.
  - Active posts are ordered by the metric mentioned above and is not displayed according to just the time.

Note 1: Please dont delete the admin account.
Note 2: Please check the second link http://hollow-light-3647.herokuapp.com/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published