1
restaurant-search/README.md

65 lines
1.8 KiB
Markdown
Raw Normal View History

2015-07-09 04:01:46 +00:00
# Restaurant Search #
2015-03-22 07:56:57 +00:00
2015-03-22 09:02:11 +00:00
This work-in-progress represents a prototype semantic search application that I'm developing as part of my master's
2015-05-21 07:56:22 +00:00
thesis at [Keio University](http://www.sfc.keio.ac.jp/). You can get a better understanding of the goals of this system
2015-05-29 11:05:27 +00:00
by referring to the [overview](https://github.com/FooSoft/search-slides/archive/master.zip) presentation. The prototype
2015-05-21 07:56:22 +00:00
is open-source and those who are interested are encouraged to [clone the project](https://github.com/FooSoft/search) and
tinker with it. You may also access a [live snapshot](http://foosoft.net:8080/) of the prototype on my server.
2015-03-22 07:56:57 +00:00
2015-03-22 09:02:11 +00:00
This installation guide is designed with [Ubuntu](http://www.ubuntu.com/)-based distributions in mind (I'm using [Linux
Mint](http://www.linuxmint.com/) for development), but I expect it to be trivial to get this application running on
other flavors of Linux. If you run into any problems, let me know.
2015-03-22 07:56:57 +00:00
2015-07-09 04:01:46 +00:00
## Installation ##
2015-03-22 07:56:57 +00:00
2015-07-09 04:01:46 +00:00
1. Install the system dependencies:
2015-03-22 07:56:57 +00:00
2015-07-09 04:01:46 +00:00
```
# apt-get install mysql-server nodejs-legacy nodejs npm
```
2015-03-26 08:43:05 +00:00
2015-07-09 04:01:46 +00:00
2. Install the Node dependencies:
2015-04-16 01:41:07 +00:00
2015-07-09 04:01:46 +00:00
```
# npm install -g bower
```
2015-03-22 07:56:57 +00:00
2015-07-09 04:01:46 +00:00
3. Install the Go tool chain:
2015-03-22 07:56:57 +00:00
2015-07-09 04:01:46 +00:00
```
$ wget https://godeb.s3.amazonaws.com/godeb-amd64.tar.gz
$ tar xzvf godeb-amd64.tar.gz
# ./godeb install
```
2015-03-22 07:56:57 +00:00
2015-07-09 04:01:46 +00:00
4. Set the `GOPATH` environment variable (read the docs).
2015-03-22 07:56:57 +00:00
2015-07-09 04:01:46 +00:00
5. Install the search application:
2015-03-22 07:56:57 +00:00
2015-07-09 04:01:46 +00:00
```
$ go get github.com/FooSoft/search
```
2015-03-22 07:56:57 +00:00
2015-07-09 04:01:46 +00:00
6. Initialize the database (from the `search/db` directory):
```
$ ./init.sh
$ ./load.sh
```
7. Install the client libraries (from the `search/static` directory):
```
$ bower install
```
8. Build and start the server (from the `search` directory):
```
$ go build
$ ./server
```
9. Access the web application at `localhost:8080`.