Buy and sell used goods! You can post items you want to sell or express your interest in items you want to buy.
- download source files, NEED db.config.js !! check …/wpl-final/backend/app/config/db.config.js is exist
- go to ‘backend’ directory npm install
- At ‘backend’ directory and start backend server with ‘node app.js’
- open ‘index.html’ (with live server extension recommended)
- You can check the list of second-handed items that have been uploaded
- You can login/register via the buttons on the top right
- If ‘Add new post’ is pressed, you can go to the new post page and upload new post. But you have to login first.
- You can check the title, price, and a number of comments for each post
- After you login-ed, the buttons on the top right are changed respectively ‘nickname ‘and ‘logout’. ‘nickname’ button is same with common ‘my page’ button
- You can go add new post page directly because you are logging in.
- You can login through two information ‘email’, ‘password’
- If the member information does not match, then error message is popped up via alert
- The moment you press the login button and successfully working, look up information from database through HTTP methods
- You can register user through the registration process above
- Each input boxes have rules, you may pay attention to the input values
- The moment you press the Sign Up button and successfully working, then create user information in database through HTTP methods
- Get Image, author, title, price, comment, … from backend server, display data to the user
- When you are not a member(non-login) if you press ‘reply’ button, you will fail to write a comment
- When you are a member(login) if you input text in comment box and press ‘reply’ button, you can write comment.
- Comments written are cumulatively stored in database from HTTP methods
- Comments written by anyone have user nickname and content
- In Add new product page, you can upload post you want to buy
- You can upload images from local files and input post title, price, content
- If you press the button after writing a post, you can see that the post is uploaded successfully
- In my page, you can check your personal information
- If you press the ‘User Posts’ list, you can go post detail page you clicked