https://github.com/himkt/twintter
twintter provides you a method to search a subject and broadcast it
https://github.com/himkt/twintter
Last synced: 7 days ago
JSON representation
twintter provides you a method to search a subject and broadcast it
- Host: GitHub
- URL: https://github.com/himkt/twintter
- Owner: himkt
- Created: 2015-04-13T14:14:55.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-21T14:57:55.000Z (over 10 years ago)
- Last Synced: 2025-03-02T17:48:36.508Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 1.1 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Twintter
```
We won the second prize in our class !
```
Twintter is a system includes various function: searching, sharing, and talking about a course...
This application is for a main major training in University of Tsukuba, College of knowledge and library science.
## Environment
This app is running on ubuntu 14.05LST in production.
And we develop this app on MacOSX (10.9 and 10.10).
Ruby version: 2.1.4
Rails version: 4.1.2
## install
#### gem
first, download the repository.
```shell
git clone git@github.com:himkt/twintter.git
```
or
```shell
git clone https://github.com/himkt/twintter.git
```
second, move to repository
```shell
cd twintter
```
please run to install required gems.
```shell
bundle install --path vendor/bundle
```
#### config/secrets.yml
##### ___This section doesn't need when you run this app in development mode.___
create a secrets file.
```shell
cp config/secrets.yml.default config/secrets.yml
```
if you run this app with production mode, please run
```shell
bundle exec rake secret
```
and copy outputing String, paste into config/secrets.yml (http://stackoverflow.com/questions/21136363/using-config-secrets-yml-in-rails-4-0-2-version)
___don't make secret.yaml public !!!!___
#### create database
```shell
bundle exec rake db:migrate
```
#### model
make a model for polarity analysis.
```shell
bundle exec rake build
```
#### subjects data
___This column is under cunstruction.___
* download data from [here](https://kdb.tsukuba.ac.jp/)


if exporting successes, you will get data into your download file (may be ~/Downloads).
please puts the file in app/vendor/subjects
file name may be 'kdb_xxxxxxxxx.xlsx'
(see https://github.com/makky3939/kdb2tsv , or https://github.com/himkt/kdb_scraper )
```shell
mkdir vendor/subject
cp path_to_kdbfile(kdb_xxxxxxxxx.xlsx) vendor/subject/
bundle exec ruby db/parse_xlsx.rb vendor/subject/kdb_xxxxxxxxx.xlsx
```
I have finished creating document about it.. I'm sorry but please wait...
After all, please run
```shell
bundle exec rake db:seed
```
## run
```shell
bundle exec rails s
```