free-programming-books-search
所属分类:电子书籍
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2023-09-24 00:01:22
上 传 者:
sh-1993
说明: 免费编程书籍搜索,,
(free programming books search,,)
文件列表:
LICENSE (1331, 2023-09-23)
fpb.json (3055990, 2023-09-23)
package-lock.json (1555195, 2023-09-23)
package.json (1245, 2023-09-23)
public/ (0, 2023-09-23)
public/favicon.ico (3870, 2023-09-23)
public/index.html (1653, 2023-09-23)
public/logo192.png (5347, 2023-09-23)
public/logo512.png (9664, 2023-09-23)
public/manifest.json (499, 2023-09-23)
public/robots.txt (67, 2023-09-23)
src/ (0, 2023-09-23)
src/App.css (5643, 2023-09-23)
src/App.js (11919, 2023-09-23)
src/App.test.js (246, 2023-09-23)
src/components/ (0, 2023-09-23)
src/components/LangFilters.js (2755, 2023-09-23)
src/components/MarkdownParser.js (2478, 2023-09-23)
src/components/ParsedLink.js (1409, 2023-09-23)
src/components/SearchBar.js (675, 2023-09-23)
src/components/SearchResult.js (305, 2023-09-23)
src/darkMode.js (1171, 2023-09-23)
src/img/ (0, 2023-09-23)
src/img/moon.png (35302, 2023-09-23)
src/img/sun.jpg (166126, 2023-09-23)
src/img/sun.png (86700, 2023-09-23)
src/index.css (366, 2023-09-23)
src/index.js (676, 2023-09-23)
src/logo.svg (2632, 2023-09-23)
src/reportWebVitals.js (362, 2023-09-23)
src/setupTests.js (241, 2023-09-23)
# free-programming-books-search
The free-programming-books-search is a companion project of [free-programming-books](https://ebookfoundation.github.io/free-programming-books/). It allows users to search by book title or author and filter by language. The search index is updated once per day, so changes made on [free-programming-books](https://ebookfoundation.github.io/free-programming-books/) may not be immediately reflected.
## Contents
- [Contents](#contents)
- [How It All Works](#how-it-all-works)
- [Installation](#installation)
- [NPM Installation](#npm-installation)
- [Running the Website](#running-the-website)
- [Deployment](#deployment)
- [FAQ](#faq)
## How It All Works
1. THERE IS NO DATABASE INVOLVED. Rather, the books are stored in a markdown on [free-programming-books](https://ebookfoundation.github.io/free-programming-books/) and is parsed daily by [free-programming-books-parser](https://github.com/EbookFoundation/free-programming-books-parser). The books and all info pertaining to them are stored in a JSON file called `fpb.json`.
2. This JSON is downloaded locally and searched locally when the actual search function is used.
## Installation
### NPM Installation
1. Make sure you have [Node.js](https://nodejs.org/en/) installed. If you already do, skip to [Running the Website](#running-the-website).
2. Otherwise, download the LTS installer from [Node.js](https://nodejs.org/en/) website.
3. Follow the instructions of the installer, make sure npm is listed as a package to be installed.
4. Click Install.
5. Verify that Node.Js has been installed by going to command line and typing in `node`. It should show the current version.
6. Close out of Node by either closing and reopening the command line or with Ctrl + C.
7. Make sure to check out the [NPM website](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) for more info.
### Running the Website
1. Make sure you have [Git](https://git-scm.com/downloads) installed.
2. Clone the repo from Github with Git.
3. Navigate to the folder using command line. A easy way is to type "`cd`" and then drag and drop the folder into command line.
4. Type `npm install`.
5. Type `npm install react-scripts`.
6. Type `npm start`. At this point, the command prompt should start up the server, and a tab in your default browser should open up to localhost.
## Deployment
MAKE SURE YOU HAVE COMPLETED THE INSTALLATION STEPS FIRST!
1. First, make sure that you the local folder containing the files has a remote configured called "`origin`".
1. If you aren't sure, navigate to the folder using Git (type "`cd`", then drag and drop folder in to Git command line).
2. Type `git init`.
3. Type `git remote add origin `, replacing `` with the url of your github repository.
2. Now, run `npm install -g gh-pages`.
3. Run `npm run deploy`.
4. This should deploy your code to "`https://yourusername.github.io/free-programming-books-search/`".
## FAQ
- What database are we using to store the books?
- NONE! The books are stored in a JSON file which is downloaded locally.
- I added a book but it's not showing up on search?
- Give it some time. The parser is run once a day, so it may take up to 24 hours for the search to reflect that.
近期下载者:
相关文件:
收藏者: