GithubHelp home page GithubHelp logo

blog's Introduction

Introduction

Blog Excercise

Week 1

Sign up

Click sign up button, enter personal information and sign up. After signing up, return to the current page with logged-in state.

Log in

Click log in button, enter username and password, then log in. After logging in, return to the current page with logged-in state.

Log out

In logged-in state, click log out button, return to the current page with logged-out state

Blog list page front end development

After clone, please execute rake db:migrate and rake db:seed

Please check these function by browse http://0.0.0.0:3000/blog/listbyuser

Week 2

User List Page

To browse this page's sample: http://0.0.0.0:3000/user/index

Finish client side and server side development, including pagination.

User could select one user and enter his blog list page.

TODO: in the sign-up part, did not add upload user image function, will do this part later.

Blog List Page

To browse this page's sample: http://0.0.0.0:3000/blog/listbyuser?id=1

Finish client side and server side development, including pagination. User could select one article and enter the article detail page.

TODO: considering change the pagination part into AJAX...

Article Detail Page

To browse this page's sample: http://0.0.0.0:3000/blog/articledetail?id=1

Finish part of the client side and part of the server side development.

TODO: ajax pagination of the comments / add comment

Week 3

Comment Pagination / Add Comment

The GIF may take a little while to load.... Sorry.

In the GIF, at first, browse http://0.0.0:3000, then select one blog user to enter his article list, and then enter the detail page of one article. In this page, user can get comment list by page and post comment.

Use AJAX to get comment list of the certain article, do pagination, and add new comment to that page.

User needs to log-in before post new comment.

Post New Blog

The GIF may take a little while to load.... Sorry.

In the GIF, at first, browse any page, then click "ログイン" button, log-in, and after log-in, click "新規ブログ" button, add new blog article. In this page, user can add tag, select a certain tag, and edit new blog.

Use AJAX to load tags of the user, and add new tags.

The editor part use Cleditor javascript plugin.

Upload User Image

GIF may take a little while to load.... Sorry.

In the GIF, at first, browse http://0.0.0:3000, then click "登録" button, fill in all the fields, select photo to upload, and press "無料登録" button. As a result, new user with image is created.

To check this function, you may need to pull the branch of photoupload, and you'd better execute these after pulling this branch.

rake db:migrate VERSION=0
rake db:migrate
rake db:seed

Also, u need to install ImageMagick in your system.

In the upload part, user's photo is resized into 2 sizes. One is used as the photo in index, blog list, and article detail page. While, the other one is used as the smaller photo in the comment posted by this user.

Week 4

To check the functions realized this week, you need to pull the branch called photoalbum.

Also, you need to install ImageMagick in your system.

Edit and Delete Blog Article

In the GIF, at first, the user logs in. And then, click "ブログ一覧" link to go to blog list page of currently logged-in user. At this page, the "編集" and "削除" button will appear when the user's mouse enters the area of one article. Also, at the article detail page, user will see those two buttons. By clicking those buttons, user can edit and delete corresponding blog articles.

After edit, user will be redirected to the detail page of current article.

After delete, user will be redirected to the article list page.

Photo Album Page

In the GIF, at first, browse http://0.0.0:3000. And then, user selects one user. In the blog list page, by clicking "画像アルバム" link, user enters the photo album of the blog user.

Click thumbnails in album page, the corresponding original photo will pop-up.

Click area outside the pop-up, the pop-up will be closed.

Upload Pictures to Photo Album

In the GIF, at first, the user logs in. And then, click "画像アプロード" link to go to the album upload page. And then, the user selects photos to be uploaded. After selecting, he clicks "アプロード開始" button. Wait a minute, user can edit the introduction of each photo. After editing, he click the "画像紹介を更新する" button to save his edit.

After saving the edit of photo introduction, user will be redirected to his photo album page.

TODO: add validations

Week 5

To check the functions realized this week, you need to pull the branch called photoalbum.

Article List of Tags

User can browse article list of a certain tag by click the tag link in the left part of the web page or the tag link under one article title.

Photo Album Page Improvement

User can browse more photos by click the button called "もっと見る" at the bottom of photo album page.

User can move to the previous or next photo by click the buttons besides the pop-up of original photo.

Photo Album Management

When the user browse his own photo album page, after log-in, he can delete photos and change introduction of photos.

By click the icon at the top left corner of the photo, user can mark this photo for deleting it later. Click for the second time, user can cancel this mark.

By change the content in textareas under the photo, user can later change the introduction of photos.

After marking photos and change content in textareas, user could click "編集を保存する" button to save his changes.

Upload Photos in Blog Article

When user editting blog article, he can click the link of adding photo, and then select one local photo and update it to the server. After being updated, the photo is appended into the current article.

Week 6

To check the functions realized this week, you need to pull the branch called notification.

Comment Reply

User can reply to another user's comment in blog article.

Message Box

In message box, after log in, user can leave messages to the owner of the message box and reply to messages of any other user in message box.

Notification

After login, user can receive notifications in any web page.

There are 4 kinds of notifications.

  1. new messages in the message box of the user

  2. messages written by this user is replied by others

  3. new comments in the article written by this user

  4. comments written by this user is replied by others

After clicking the link notification pop-up, the corresponding notification will not be shown again.

blog's People

Contributors

cliffzhaobupt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.