Skip to content
Snippets Groups Projects
Commit 01825e05 authored by Rickard Loland's avatar Rickard Loland
Browse files

readme updated

parent 70086743
No related branches found
No related tags found
No related merge requests found
...@@ -9,19 +9,23 @@ Rickard Loland ...@@ -9,19 +9,23 @@ Rickard Loland
#### How to use our forum #### How to use our forum
In the top bar of our page is the forum name on the top left and on the top right are most of the user The header of our forum has the name on the top left and most of the implemented page elements on the right.
side things. Bellow the top bar is our main page with all posts displayed. These posts are clickable and Bellow the header bar is the main content section of our site with all posts displayed. These posts are clickable and
will show the post as well as its comments. To create a post the user will have to login, or register if will show the post as well as its comments. To create a post the user will have to login, or register if
no user already exists. Once logged in the user will be able to post as well as see their profile no user already exists. Once logged in the user will be able to create new posts as well as see their profile
page, where username, picture and all posts posted by the user are shown. page, where username, picture and all posts created by the user are shown.
#### Implementation of Session in Server.js #### Implementation of Session in Server.js
Session is implemented, but does not work correctly. Session is implemented, but does not work correctly.
When 8081 is accessed directly there is no problem saving and accessing the userId saved on req.session.userId, but when accessed from frontend (8080) the session is not accessible. When 8081 is accessed directly there is no problem saving and accessing the userId saved on req.session.userId, but when accessed from frontend (8080) the session is not accessible.
The method we have chosen to use for implementing session was probably not the optimal and we dont know if it is an error with the implementation or that the method is not meant for this kind of use.
throughout the code we therefore have changed "req.session.userId" with "1", to simulate each function as logged in with user "1".
/redirectLogin and /redirectHome stillworks because it aparantly allow that req.session.userId is "undefined" insted of empty.
The method we have chosen to use for implementing session was probably not the optimal and we dont know if it is an error with the implementation, or if the method is not meant for this kind of use.
Throughout the code we therefore have changed "req.session.userId" to "1", to simulate each function as run by a user logged in as user "1".
/redirectLogin and /redirectHome still works because they apparently allow for req.session.userId to be "undefined" insted of empty.
We sent mail to Aland asking about help for this issue, but did not receive a reply. Based on the information that was communicated by
reference group members regarding loosening the strictness evaluation criteria, combined with a lot of work focusing on our graded
project in PROG2002 and reading for an exam the 26th, we decided not to push further with this and other missing features.
## Project description ## Project description
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment