Egret Engine Development Guide-running project, egret engine guide project
This is an exciting summary, because in this summary, you can finally see the running effect of your first Demo.
1. Run the game with Egret
To run the Egret project, we need a running HTTP server. In the previous tutorial on installing Egret, we have recommended an HTTP server for you. Now let's take a look at how to use the simplest HTTP server provided by egret to run our project.
As in the previous tutorial, our Prime Minister located our project on the terminal and usedcd
Command.
Then run a simple command to start the HTTP server of Egret. The command is as follows:
egret startserver HelloWorld
In this commandegret startserver
To start commands on the egret internal serverHelloWorld
It is our project name.
After running the command, you will see the effect.
Then, the egret tool starts your browser, which is the default browser of the current operating system. When the egret tool starts Chrome, the specified webpage is opened. The default webpage is http: // localhost: 3000/HelloWorld/launcher/index.html.
In this case, you will see a Hello World effect with a simple animation in Chrome. The effect is as follows:
Here we briefly describe the server address below. The default server address ishttp://localhost:3000/HelloWorld/launcher/index.html
. Egret is the access address of the HTTP server we started.http://localhost:3000/
, Wherehttp://localhost
Is the local access address,3000
For the port number we use, the default port number for egret is "3000 ". Make sure that port 3000 is not in use before starting the server.
2. Use a third-party HTTP server tool to run the game
If you have installed other HTTP tools, you can now open and run them
Addbin-debug
,launcher
,resources
Copy the folder to the root directory or directory of the HTTP server. Access your server address to run the game.
The access address rule isHttp: // your server address/launcher/index.html
How search engines work and how to develop search websites
Since the operating principle of the search engine is needless to say, let me talk about the running steps you are concerned about!
Search engine development steps: first, before developing a website, we should first consider the website architecture. A complete search engine consists of three main points: web page collection, web page preprocessing, and query service. The relationship between these three points is independent and closely connected. This is like developing a full-text index or a Directory Index Search website.
Secondly, we need to prepare a program for Web Crawlers (commonly known as spider). This is used to collect webpage information.
Once again, the original webpage is processed, because after the webpage is collected, the original webpage cannot be directly used to provide the search service after a small number of original webpages are obtained. Prepare two file clips and customize the names. One is the repository for storing processed webpages, and the other is the repository for storing the URLs of the original webpages corresponding to the processed webpages; the other is used to save all the cited files.
The last step, of course, is to provide the query service to our clients, that is, to provide a Web interface that allows users to enter query keywords to query information.
In this way, the development steps of a search website are basically completed.
The operating principle is in Baidu search, and the answer is complete.
How does a search engine work and how does one develop a search website?
How does a search engine work and develop it? D is a tough task!