[Show you how to develop a novel reader station from scratch] Chapter 1: function introduction, function introduction from scratch

Source: Internet
Author: User

[Show you how to develop a novel reader station from scratch] Chapter 1: function introduction, function introduction from scratch

First, the purpose of this reading site is to learn. I have been writing business code in java for more than two years. So there is always an impulse to build a complete framework, but I have never been (lazy) There are (cancer) (symptoms) (strict) fit (weight) (suffering) machine (by) Will.

In addition, this is the first time that a blogger writes a blog so seriously. Although he has written some gossip before, he simply copies and pasted the blog and left it as he saw it. It was too messy and he could not understand it anyway, teardown ~~ If there are any bad things, you are welcome to correct them.

Therefore, there are several purposes to write this series of blog posts:

1. The main purpose is to review and review the entire process of the Development reading site by writing this blog.

2. the bloggers searched for some similar examples on the Internet before developing the reading site. There are many examples of back-end java development that are written in php, so the idea was to develop one by yourself and share it with you later. The so-called open-source family members will make common progress ~~

Well, let's talk about the official content in this chapter.

This chapter mainly introduces and sorts out the functions of the entire website. As a pure reading site, the weak bloggers think that the functions are already complete and the shortcomings are not provided to you.

 

Homepage

 

By default, the home page is a recommendation page. The latest 50 books are recommended in descending order of the update time. Between the menu navigation and the book list, that is, a text marquee is at the top of the list. You can manually change the configuration.

 

Specific category page


The category page has the same display template on the home page. Select a category and the corresponding menu is displayed in white. 25 books are loaded on each page of the category page. When sliding down to the end, more books on the next page are dynamically obtained from the server. 25 books are obtained each time. In addition, the category page is sorted in descending order by the primary key id of the corresponding category book, that is, the books are placed near the top.

 

Book details page



Click the corresponding book on the home page or category page to go to the book details page.

This page displays the book details. The top of the page displays the author, book category, number of words, and last update time.

The middle gray background shows the description of the book.

Click the next two buttons to start reading. The first chapter begins with the content page of the Chapter. When you add a bookshelf, the book will be saved in the local cookie. Books saved to cookies can be viewed in the schoolbag on the menu.

Below is a preview of the directory. The top is the latest chapter directory, followed by the first three chapters of the book. Click the directory to go to the chapter content page. Click "view more" at the far right of the directory to go to the specific directory page.

 

 

Directory page

Many directories are considered, so the directory pages are processed by page. By default, Chapter 100 is displayed on each page, and the row is discolored. There is a previous page at the bottom of the Directory page, and the next page can jump to the relative page of the current directory page. In addition, manually enter the page and click "jump" to quickly jump to the index directory page.

The book name and author are displayed at the top of the Directory page. On the top of the page, set the left and right buttons to jump to the home page and my bookshelves page.

Like the directory preview on the details page, you can click the corresponding directory on this page to go to the corresponding chapter content page.

 

Chapter Content Page

Similarly, "back on the homepage" and "my bookshelves" are displayed on both sides of the order page. You can quickly go to the corresponding page and display the previous chapter, contents, and favorites on both sides of the content body, the buttons in the next chapter jump to the corresponding chapters in this chapter, and click "directory" to go to the first page Directory of the book. Add the book to the bookshelf.

 

Bookshelves


Choose "add to bookshelves" on the book details page or "add to Favorites" on the Content Page, and click "my bookshelves" on the menu bag or page. Go to the my bookshelves page.

My bookshelves display three favorite books by row. Click the corresponding book image to enter the text of the book. Note that at this time, you will read the text page of the corresponding chapter of this book for the last time. The last time you saw chapter 20, you may see Chapter 21, because the mobile browser may have loaded a chapter in advance. In addition, the browser must enable the cookie cache function for my bookshelves. That is, browsing without marks will not be able to collect books.

 

Search Page

Go to the search page from the menu. The latest 5 books are displayed by default.

Enter text in the input box and click search. Fuzzy match the book name. And all are displayed.

 

The above is the introduction of all functions of the reading site. In addition, I will update the blog according to the following plan.

Chapter 1: Functions

Chapter 2 Technology Selection

Chapter 3 Database Table Structure

Chapter 4 background framework construction

Chapter 5: Introduction to front-end templates

Chapter 6: home page and category page implementation

Chapter 7. Details page implementation

Chapter 8 directory page implementation

Chapter 9 content page implementation

Chapter 10: Collect the bookshelves

Chapter 2: search page implementation

Chapter 2, summary (conclusion)

 

In addition, in order to ensure the quality, the bloggers may not be updated in time due to the recent complicated transactions. It is expected that two to three chapters will be updated in a week, probably within a month. Coming soon.

After finishing the last chapter, I will open-source the Code and provide the address for your reference.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.