Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brunoocasali/java-twitter
This app will be used to write an article to university.
https://github.com/brunoocasali/java-twitter
Last synced: about 23 hours ago
JSON representation
This app will be used to write an article to university.
- Host: GitHub
- URL: https://github.com/brunoocasali/java-twitter
- Owner: brunoocasali
- License: gpl-3.0
- Created: 2014-11-18T02:18:23.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-25T02:27:42.000Z (almost 10 years ago)
- Last Synced: 2023-08-13T01:57:13.000Z (about 1 year ago)
- Language: Java
- Homepage: http://twitter-on-java.herokuapp.com/
- Size: 634 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Twitter On Java
============This app will be used to write an article to university.
- Run in Terminal: **Database codes.**
1° `~$ sudo -u postgres psql` then type your password!
2° `postgres=# CREATE DATABASE twitter_on_java;` so you will created the database.
3° `postgres=# \c twitter_on_java;` enter on the database!
4° Create the table for tweets:
```
CREATE TABLE tweets(
tweet_id BIGINT DEFAULT 0 NOT NULL PRIMARY KEY,
screen_name VARCHAR(20) DEFAULT 'Person Name!' NOT NULL,
user_id BIGINT DEFAULT 0 NOT NULL,
created_at TIMESTAMP DEFAULT NOW(),
text_tweet VARCHAR(140) DEFAULT 'Tweeet Teeextt!' NOT NULL,
user_image VARCHAR(200) DEFAULT 'http://c.dryicons.com/images/icon_sets/symbolize_icons_set/png/64x64/user.png'
);
```5° `postgres=# \q` You could exit!